From 4748bb14ddddb0343d2344e16e4fb82e2f918842 Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Mon, 7 Dec 2015 21:59:03 -0800 Subject: [PATCH] add trace Signed-off-by: Victor Vieux --- api/primary.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/primary.go b/api/primary.go index 6e1d0c8fd1..7f5a5e1c4f 100644 --- a/api/primary.go +++ b/api/primary.go @@ -108,6 +108,7 @@ func profilerSetup(mainRouter *mux.Router, path string) { r.HandleFunc("/pprof/cmdline", pprof.Cmdline) r.HandleFunc("/pprof/profile", pprof.Profile) r.HandleFunc("/pprof/symbol", pprof.Symbol) + r.HandleFunc("/debug/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)