Rust Profiling
Rust profiling skill for performance analysis. Use when generating flamegraphs from Rust binaries, measuring monomorphization bloat with cargo-llvm-lines, analysing binary size with cargo-bloat, microbenchmarking with Criterion, or interpreting inlined frames in profiles. Activates on queries about cargo flamegraph, cargo-bloat, cargo-llvm-lines, Criterion benchmarks, Rust performance profiling, or binary size analysis.
Install
npx skills add mohitmishra786/low-level-dev-skills --skill rust-profilinggit clone --depth 1 https://github.com/mohitmishra786/low-level-dev-skills.git /tmp/low-level-dev-skills
mkdir -p ~/.claude/skills
cp -r /tmp/low-level-dev-skills/skills/rust/rust-profiling ~/.claude/skills/rust-profilingPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Rust Profiling ## Purpose Guide agents through Rust performance profiling: flamegraphs via cargo-flamegraph, binary size analysis, monomorphization bloat measurement, Criterion microbenchmarks, and interpreting profiling results with inlined Rust frames. ## Triggers - "How do I generate a flamegraph for a Rust program?" - "My Rust binary is huge — how do I find what's causing it?" - "How do I write Criterion benchmarks?" - "How do I measure monomorphization bloat?" - "Rust performance is worse than expected — how do I profile it?" - "How do I use perf with Rust?" ## Workflow ### 1. Build for profiling ```bash # Release with debug symbols (needed for readable profiles) # Cargo.toml: [profile.release-with-debug] inherits = "release" debug = true cargo build --profile release-with-debug # Or quick: release + debug info inline CARGO_PROFILE_RELEASE_DEBUG=true cargo build --release ``` ### 2. Flamegraphs with cargo-flamegraph ```bash # Install cargo install flamegraph # Linux: uses perf (requires perf_event_paranoid ≤ 1) sudo sh -c 'echo 1 > /proc/sys/kernel/perf_event_paranoid' cargo flamegraph --bin myapp -- arg1 arg2 # macOS: uses DTrace (requires sudo) sudo cargo flamegraph --bin myapp -- arg1 arg2 # Profile tests cargo flamegraph --test mytest -- test_filter # Profile benchmarks cargo flamegraph --bench mybench -- --bench # Output # Generates flamegraph.svg in current directory # Open in browser: firefox flamegraph.svg ``` Custom flamegraph options:
Details
- Skill name
rust-profiling- Repository
- mohitmishra786/low-level-dev-skills
- Path
skills/rust/rust-profiling/SKILL.md- License
- MIT
- Repo updated
- 14 November 2026
FAQ
What does the Rust Profiling skill do?
Rust profiling skill for performance analysis. Use when generating flamegraphs from Rust binaries, measuring monomorphization bloat with cargo-llvm-lines, analysing binary size with cargo-bloat, microbenchmarking with Criterion, or interpreting inlined frames in profiles. Activates on queries about cargo flamegraph, cargo-bloat, cargo-llvm-lines, Criterion benchmarks, Rust performance profiling, or binary size analysis.
How do I install the Rust Profiling skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add mohitmishra786/low-level-dev-skills --skill rust-profiling. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Rust Profiling popular?
It lives in mohitmishra786/low-level-dev-skills, which has 293 GitHub stars and 36 forks.
Related skills
Abi and Calling Conventions
293mohitmishra786/low-level-dev-skills
ABI and calling conventions skill for cross-language boundaries. Use when explaining System V AMD64, ARM AAPCS, RISC-V psABI, stack frames, variadic calls, or FFI register rules. Activates on queries about calling convention, ABI, System V AMD64, AAPCS, stack frame, variadic function, or FFI registers.
Adc Dac Baremetal
293mohitmishra786/low-level-dev-skills
Bare-metal ADC and DAC skill. Use when configuring analog sampling, DMA-driven ADC, calibration, or DAC output on MCUs. Activates on queries about ADC bare-metal, sampling time, DMA ADC, or DAC channel setup.
Af Xdp
293mohitmishra786/low-level-dev-skills
AF_XDP skill for high-performance XDP sockets. Use when creating AF_XDP sockets, configuring UMEM and XSK rings, XDP_REDIRECT programs, copy vs zero-copy mode, or comparing with DPDK. Activates on queries about AF_XDP, xsk_umem, XDP_REDIRECT, libbpf xsk, or zero-copy XDP.
Rust Sanitizers Miri
293mohitmishra786/low-level-dev-skills
Rust sanitizers and Miri skill for memory safety validation. Use when running AddressSanitizer or ThreadSanitizer on Rust code, interpreting sanitizer reports, using Miri to detect undefined behaviour in unsafe Rust, or validating unsafe code correctness. Activates on queries about Rust ASan, Rust TSan, Miri, RUSTFLAGS sanitize, cargo miri, unsafe Rust UB, or interpreting Rust sanitizer output.
Rust No Std
293mohitmishra786/low-level-dev-skills
Guide no_std Rust development for embedded and bare-metal targets. Use when writing #![no_std] crates, understanding core vs alloc vs std, implementing custom global allocators, selecting panic handlers for embedded, or testing no_std crates on the host without hardware.
Rust Security
293mohitmishra786/low-level-dev-skills
Rust security skill for supply chain safety and memory-safe development. Use when auditing dependencies with cargo-audit, enforcing policies with cargo-deny, reviewing RUSTSEC advisories, writing memory-safe FFI patterns, or integrating fuzzing and Miri into a security review pipeline. Activates on queries about cargo-audit, cargo-deny, RUSTSEC advisories, supply chain security, Rust CVEs, safe FFI, or fuzzing for security.
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.