1.0 KiB
Lab heap profiles
Only a holder built with -tags swblock_lab_bigvol serves
GET /debug/pprof/heap on its existing --status-addr listener.
Release builds return 404. There is no additional flag, signal handler or
listener. The route always refuses non-loopback clients, including when the
status listener was explicitly allowed to bind externally.
For current live allocations, fetch /debug/pprof/heap?gc=1: the standard
Go heap handler runs a full GC first and returns a binary pprof profile.
For example, save the response using curl --fail --max-time 30 http://127.0.0.1:9181/debug/pprof/heap?gc=1 -o heap.pprof, substituting the
holder's actual status address. Inspect it with
go tool pprof -sample_index=inuse_space -top -cum heap.pprof.
GC and collection pause and perturb the workload; record the sample time in
performance evidence. This small diagnostic smoke does not measure large-volume
memory use. The standard handler's debug and gc query options retain their
normal meaning. CPU profiling via SIGUSR1 remains independent.