What problem does it solve?
Help developers find and understand performance and size hotspots in Rust projects by guiding profiling workflows, interpreting results, and recommending mitigations to reduce CPU time, allocation overhead, and binary bloat.
Core Features & Use Cases
- Flamegraphs: Instructions for generating and customizing flamegraphs using cargo-flamegraph or perf to identify hot call paths.
- Binary size analysis: Use cargo-bloat to discover large functions and per-crate size contributions and cargo-llvm-lines to measure monomorphization expansion.
- Microbenchmarking and regressions: Configure and run Criterion benchmarks, save baselines, and compare performance across changes.
- Platform-specific tooling: Advice for perf, heaptrack, and Valgrind on Linux and DTrace-based profiling on macOS, plus build flags and RUSTFLAGS recommendations.
Quick Start
Generate a flamegraph for your release-with-debug build using cargo flamegraph and open the produced SVG to inspect hotspots.