Pprof
standard net/http/pprof profiles, mounted under /debug/pprof. Click a name to inspect in the browser, or copy the URL into go tool pprof for a flame graph.
| profile | description | live | actions |
|---|---|---|---|
| allocs | all past memory allocations | 21 | download |
| block | stack traces leading to blocking on sync primitives | 0 | download |
| goroutine | stack traces of all current goroutines | 7 | download |
| heap | memory allocations of live objects | 21 | download |
| mutex | stack traces of contended mutex holders | 0 | download |
| threadcreate | stack traces that led to OS thread creation | 7 | download |
| profile | 30s CPU profile (downloadable .pb.gz) | — | download |
| trace | 1s execution trace (downloadable .out) | — | download |
Note: the CPU profile (profile) blocks for the requested duration. The trace (trace) yields a binary file consumable by go tool trace.