rust-profiling
Installation
SKILL.md
Rust Profiling
End-to-end workflow: build with debug info → collect profile → collapsed stacks (primary analysis format) → flamegraph (visualization).
Format Strategy
| Format | Best for | Tool |
|---|---|---|
| Collapsed stacks | LLM analysis, awk parsing, diffs | perf script | stackcollapse-perf.pl |
| SVG flamegraph | Shareable, self-contained | cargo flamegraph |
| Firefox Profiler | Interactive human exploration | samply record |
| Criterion HTML | Benchmark regression tracking | cargo bench |
| heaptrack | Memory allocations + live heap | heaptrack ./binary |
Use collapsed stacks for LLM analysis. Format: frame1;frame2;leaf N — same as Go's pprof collapsed format.