runtime/pprof package
Canonical docs for goroutine, CPU, heap, block, and mutex profiles, including stack dump output.
Canonical docs for goroutine, CPU, heap, block, and mutex profiles, including stack dump output.
- Author: Go Team
- Authority: primary
- Kind: package-doc
- URL: https://pkg.go.dev/runtime/pprof
What it covers
- goroutine profile output
- pprof profile collection
- runtime profile inspection hooks
Why authoritative
Official package documentation for Go’s runtime profiling APIs.
Use when
- how do I dump goroutines in Go
- how do I get a goroutine profile
- what profile should I use to inspect blocked goroutines
Keywords
- runtime/pprof, goroutine profile, pprof, stack dump, profiles