liveBook · Manning

Pprof

pprof is Go’s profiling toolset and package ecosystem for collecting, analyzing, and visualizing runtime performance profiles.

How 2 Manning books explain it

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.

Read how Cloud Observability in Action explains pprof →

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

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.