From 8879458faab9ed1122cc1f00c15680bfd82705dd Mon Sep 17 00:00:00 2001 From: allencloud Date: Fri, 13 May 2016 15:24:44 +0800 Subject: [PATCH] add trace in docker engine's pprof to show execution trace in binary form Signed-off-by: allencloud --- api/server/profiler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/server/profiler.go b/api/server/profiler.go index 3c0dfd08f2..8bf8384fdb 100644 --- a/api/server/profiler.go +++ b/api/server/profiler.go @@ -18,6 +18,7 @@ func profilerSetup(mainRouter *mux.Router) { r.HandleFunc("/pprof/cmdline", pprof.Cmdline) r.HandleFunc("/pprof/profile", pprof.Profile) r.HandleFunc("/pprof/symbol", pprof.Symbol) + r.HandleFunc("/pprof/trace", pprof.Trace) r.HandleFunc("/pprof/block", pprof.Handler("block").ServeHTTP) r.HandleFunc("/pprof/heap", pprof.Handler("heap").ServeHTTP) r.HandleFunc("/pprof/goroutine", pprof.Handler("goroutine").ServeHTTP)