Pprof
pprof is Go’s profiling toolset and package ecosystem for collecting, analyzing, and visualizing runtime performance profiles.
Cloud Observability in Action
net/http/pprof is a Go package that exposes runtime profiling data through HTTP handlers.
- How it is used
- Supports developer observability by exposing, collecting, analyzing, and visualizing runtime profiles for performance troubleshooting.
- How deep it goes
- Explains HTTP exposure, interactive analysis, graph rendering, and protobuf structure, but stops short of detailed profile internals.
- Examples
- Uses a Go CPU workload, goroutine call graphs, pprof shell rankings, protobuf decoding, and an OpenTelemetry collector scraped by Parca.
- What you can do after
- Diagnose/debug Go and service-runtime hotspots by collecting profiles, ranking functions, rendering graphs, and querying historical samples.
100 Go Mistakes and How to Avoid Them
net/http/pprof is a Go standard-library package that exposes runtime profiling data through HTTP handlers.
- How it is used
- Uses pprof to investigate performance issues, contention, and possible memory leaks.
- How deep it goes
- Explains HTTP setup, available profiles, and CPU sampling behavior.
- Examples
- Shows a Go HTTP server exposing pprof and a go tool pprof command for opening a profile.
- What you can do after
- Apply it via net/http/pprof to expose profiles and go tool pprof to inspect collected data.
Read how 100 Go Mistakes and How to Avoid Them explains pprof →
Related concepts
- OpenTelemetry Collectorconfigures · The OpenTelemetry Collector is a vendor-neutral service that receives, processes, and exports telemetry data.
- pprof formatproduces · The pprof format is a Protocol Buffers-encoded representation of software execution profiles for storage or transmission.
- profilingimplements · Profiling is the measurement and analysis of a program’s runtime behavior and resource use to characterize performance and identify bottlenecks.
- Gouses · Go is a statically typed, compiled, garbage-collected programming language with built-in support for concurrency.
- open standardkind of · An open standard is a publicly available technical specification developed through an open process and implementable by independent parties.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

