Skip to content

Commit

Permalink
Merge pull request redpanda-data#2332 from filippog/pprof-allocs
Browse files Browse the repository at this point in the history
Enable pprof /allocs endpoint
  • Loading branch information
Jeffail authored Jan 26, 2024
2 parents 88d4fcf + 7d065ff commit 7ff658d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ func New(
"/debug/pprof/mutex", "DEBUG: Responds with a pprof-formatted mutex profile.",
pprof.Index,
)
t.RegisterEndpoint(
"/debug/pprof/allocs", "DEBUG: Responds with a pprof-formatted allocs profile.",
pprof.Index,
)
t.RegisterEndpoint(
"/debug/pprof/symbol", "DEBUG: looks up the program counters listed"+
" in the request, responding with a table mapping program"+
Expand Down

0 comments on commit 7ff658d

Please sign in to comment.