github.com/jfrazelle/docker@v1.1.2-0.20210712172922-bf78e25fe508/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 }