go-profiling

Installation
SKILL.md

Go Profiling with pprof

End-to-end workflow: enable pprof → collect profile → collapsed stacks (primary analysis format) → flamegraph (visualization).

Format Strategy

Format Best for Command
Collapsed stacks LLM analysis, CI diffs, awk parsing go tool pprof -raw -output=collapsed
HTML flamegraph Interactive human exploration go tool pprof -http=:8081
Text top Quick terminal summary go tool pprof -top
Raw .prof Archive, future re-analysis

Use collapsed stacks for LLM analysis. Format: frame1;frame2;leaf N — one line per unique call stack, count at end.


Step 1 — Enable pprof in Your Application

Installs
1
GitHub Stars
8
First Seen
Jun 3, 2026
go-profiling — tstapler/dotfiles