prow/pjutil/pprof.go
func ServePProf() {
	pprofMux := http.NewServeMux()
	pprofMux.HandleFunc("/debug/pprof/", pprof.Index)
	pprofMux.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)
	pprofMux.HandleFunc("/debug/pprof/profile", pprof.Profile)
	pprofMux.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
	pprofMux.HandleFunc("/debug/pprof/trace", pprof.Trace)
	go func() {
		logrus.WithError(http.ListenAndServe(":6060", pprofMux)).Fatal("ListenAndServe returned while serving pprof data.")
	}()
}
func ServePProf() {
	pprofMux := http.NewServeMux()
	pprofMux.HandleFunc("/debug/pprof/", pprof.Index)
	pprofMux.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)
	pprofMux.HandleFunc("/debug/pprof/profile", pprof.Profile)
	pprofMux.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
	pprofMux.HandleFunc("/debug/pprof/trace", pprof.Trace)
	go func() {
		logrus.WithError(http.ListenAndServe(":6060", pprofMux)).Fatal("ListenAndServe returned while serving pprof data.")
	}()
}
// ServePProf sets up a handler for pprof debug endpoints and starts a server for them asynchronously.
// The contents of this function are identical to what the `net/http/pprof` package does on import for
// the simple case where the default mux is to be used, but with a custom mux to ensure we don't serve
// this data from an exposed port.