github.com/khulnasoft-lab/khulnasoft@v26.0.1-0.20240328202558-330a6f959fe0+incompatible/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 }