Profiling | Internals for Interns

strong runtime internals explainer; useful for debugging/perf literacy and for understanding what pprof is actually showing.

Original source

Gist: all five profiles emit the same pprof structure; the core difference is collection model, CPU samples asynchronously via signal + ring buffer, heap/block/mutex aggregate in per-stack tables in place, goroutine snapshots stacks on demand.

Newsletter angle: “pprof is one file format over three collection strategies” is a clean framing hook.

Retrieval note: extracted via FXTwitter API + linked article fetch.