github.com/Heebron/moby@v0.0.0-20221111184709-6eab4f55faf7/api/server/router/debug/debug_routes.go (about) 1 package debug // import "github.com/docker/docker/api/server/router/debug" 2 3 import ( 4 "context" 5 "net/http" 6 "net/http/pprof" 7 ) 8 9 func handlePprof(ctx context.Context, w http.ResponseWriter, r *http.Request, vars map[string]string) error { 10 pprof.Handler(vars["name"]).ServeHTTP(w, r) 11 return nil 12 }