From 1f200cbcd64769ff3a5faf3b00bdda4c58171401 Mon Sep 17 00:00:00 2001 From: Ryan Leung Date: Thu, 25 Feb 2021 22:38:04 +0800 Subject: [PATCH] support more profile API (#3435) Signed-off-by: Ryan Leung Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com> --- server/api/router.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/api/router.go b/server/api/router.go index 2230f53fd9a..99605344830 100644 --- a/server/api/router.go +++ b/server/api/router.go @@ -226,11 +226,14 @@ func createRouter(ctx context.Context, prefix string, svr *server.Server) *mux.R // profile API apiRouter.HandleFunc("/debug/pprof/profile", pprof.Profile) + apiRouter.HandleFunc("/debug/pprof/trace", pprof.Trace) + apiRouter.HandleFunc("/debug/pprof/symbol", pprof.Symbol) apiRouter.Handle("/debug/pprof/heap", pprof.Handler("heap")) apiRouter.Handle("/debug/pprof/mutex", pprof.Handler("mutex")) apiRouter.Handle("/debug/pprof/allocs", pprof.Handler("allocs")) apiRouter.Handle("/debug/pprof/block", pprof.Handler("block")) apiRouter.Handle("/debug/pprof/goroutine", pprof.Handler("goroutine")) + apiRouter.Handle("/debug/pprof/threadcreate", pprof.Handler("threadcreate")) // service GC safepoint API serviceGCSafepointHandler := newServiceGCSafepointHandler(svr, rd)