What problem does it solve?
This Skill helps developers identify and resolve performance bottlenecks in Rust applications by providing tools and methodologies for profiling, benchmarking, and optimizing code.
Core Features & Use Cases
- Profiling: Guides Rust profiling using tools like
cargo flamegraph, samply, and platform-specific profilers.
- Benchmarking: Documents benchmarking patterns with libraries such as
criterion, divan, and iai.
- Optimization: Covers LLVM compiler internals, codegen flags, and memory/allocation strategies for high-performance Rust code.
- Use Case: You have a Rust service that is experiencing high CPU usage. Use this Skill to generate a flame graph, identify the hottest functions, and apply optimization techniques like reducing allocations or tuning compiler flags.
Quick Start
Use the perf-rust skill to generate a flame graph for the 'my-app' binary.