liveBook · Manning

Pprof

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

How 3 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 profiling to investigate application performance, contention, and possible memory leaks.
How deep it goes
Explains HTTP enablement, profile types, and CPU sampling mechanics, with commands for collecting and viewing profiles.
Examples
Demonstrates an HTTP server with a blank pprof import and commands for benchmark profiling and profile viewing.
What you can do after
Diagnose/debug performance issues using pprof profiles and its HTTP viewer.

Read how 100 Go Mistakes and How to Avoid Them explains pprof →

Fast by Default

pprof is Go's profiling toolset for collecting and analyzing CPU, memory, and other runtime profiles.

How it is used
Diagnoses memory growth in running Go services by comparing heap profiles before and after representative traffic.
How deep it goes
Explains an operational capture-and-diff workflow but does not detail pprof’s internal profiling implementation.
Examples
Uses a localhost heap endpoint, startup and post-traffic profiles, and a before-and-after memory-growth comparison.
What you can do after
Diagnose memory growth with pprof by capturing heap profiles and comparing allocation changes after traffic.

Read how Fast by Default explains pprof →

What to know first

Related concepts

Questions about pprof

What is pprof?

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

Which Manning books explain pprof?

Cloud Observability in Action, 100 Go Mistakes and How to Avoid Them and Fast by Default.

What should I know before learning pprof?

Manning books that teach pprof usually introduce stack trace first.

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.