From cc225fbb9e5e8f3162783673e07d1b3fa4156947 Mon Sep 17 00:00:00 2001 From: Huayi Zhang Date: Mon, 1 Dec 2014 16:45:53 +0800 Subject: [PATCH] Attach goroutine blocking profiler /debug/pprof/block is 404 currently Signed-off-by: Huayi Zhang Upstream-commit: 51172493ab6d2b31760b9fe273c7d4d0917a9bb7 Component: engine --- components/engine/api/server/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/components/engine/api/server/server.go b/components/engine/api/server/server.go index 41318967a6..bf5318c0f4 100644 --- a/components/engine/api/server/server.go +++ b/components/engine/api/server/server.go @@ -1259,6 +1259,7 @@ func AttachProfiler(router *mux.Router) { router.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline) router.HandleFunc("/debug/pprof/profile", pprof.Profile) router.HandleFunc("/debug/pprof/symbol", pprof.Symbol) + router.HandleFunc("/debug/pprof/block", pprof.Handler("block").ServeHTTP) router.HandleFunc("/debug/pprof/heap", pprof.Handler("heap").ServeHTTP) router.HandleFunc("/debug/pprof/goroutine", pprof.Handler("goroutine").ServeHTTP) router.HandleFunc("/debug/pprof/threadcreate", pprof.Handler("threadcreate").ServeHTTP)