Skip to content

Commit

Permalink
support more profile API (#3435)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <[email protected]>

Co-authored-by: Ti Chi Robot <[email protected]>
  • Loading branch information
rleungx and ti-chi-bot authored Feb 25, 2021
1 parent c436e98 commit 1f200cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/api/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1f200cb

Please sign in to comment.