diff --git a/internal/server/pprof.go b/internal/server/pprof.go index 4aa1778..0de80a9 100644 --- a/internal/server/pprof.go +++ b/internal/server/pprof.go @@ -131,6 +131,8 @@ func (h *PprofHandler) ServeHTTP(ctx *fasthttp.RequestCtx) { h.handleBlock(ctx) case "/mutex": h.handleMutex(ctx) + case "/allocs": + h.handleAllocs(ctx) default: ctx.SetStatusCode(fasthttp.StatusNotFound) ctx.SetBodyString("Unknown profile: " + subPath) @@ -175,7 +177,8 @@ func (h *PprofHandler) handleIndex(ctx *fasthttp.RequestCtx) {
| CPU Profile (30s) | CPU profile for 30 seconds |
| Heap Profile | Memory allocation profile |
| Heap Profile | Memory allocation profile (in-use) |
| Allocs Profile | Memory allocation profile (allocations) |
| Goroutine Profile | Goroutine stack traces |
| Block Profile | Blocking profile |
| Mutex Profile | Mutex contention profile |