Skip to content

Commit

Permalink
Merge pull request #5545 from onflow/petera/add-cpu-profile-support-m…
Browse files Browse the repository at this point in the history
…aster

[Admin] Add support for CPU profiles via admin server - master backport
  • Loading branch information
peterargue authored Mar 15, 2024
2 parents 0bb7997 + 5439a32 commit 00e4924
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions admin/command_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ func (r *CommandRunner) runAdminServer(ctx irrecoverable.SignalerContext) error
for _, name := range []string{"allocs", "block", "goroutine", "heap", "mutex", "threadcreate"} {
mux.HandleFunc(fmt.Sprintf("/debug/pprof/%s", name), pprof.Handler(name).ServeHTTP)
}
mux.HandleFunc("/debug/pprof/profile", pprof.Profile)
mux.HandleFunc("/debug/pprof/trace", pprof.Trace)

httpServer := &http.Server{
Expand Down

0 comments on commit 00e4924

Please sign in to comment.