Skip to content

Rust profiling workflow covering flamegraphs, binary size, monomorphization bloat, and Criterion microbenchmarks.

CCM score
60 of 100
skills.sh installs
810
GitHub stars
303
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full profiling path: build with debug symbols, flamegraphs, binary size, monomorphization bloat, benchmarks, and allocation tracing
  • Includes cargo flamegraph, cargo bloat, cargo llvm-lines, and Criterion setup, plus perf and heaptrack/DHAT commands
  • Shows a before-and-after thin generic wrapper pattern to reduce monomorphization copies in cargo llvm-lines output
  • Designed for Rust developers diagnosing slow programs or oversized binaries, with links to related profiler skills

Install

$ npx -y skills add mohitmishra786/low-level-dev-skills --skill rust-profiling -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

# 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

# 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

Details

Repository
github.com/mohitmishra786/low-level-dev-skills
Categories
Rust, Debugging
First seen
Jun 3, 2026

Questions

What is rust-profiling?

rust-profiling is an agent skill listed on Claude Marketplaces in the Rust category. The listing describes rust-profiling like this: Rust profiling skill for performance analysis.

How do I install rust-profiling?

Run npx -y skills add mohitmishra786/low-level-dev-skills --skill rust-profiling -y in a project to install rust-profiling. After that, the agent can use rust-profiling in that project.

Which category is rust-profiling in?

rust-profiling is in the Rust category on Claude Marketplaces. On that category page, rust-profiling ranks in the top 100.

Where is the source code of rust-profiling?

The source code of rust-profiling is on GitHub at https://github.com/mohitmishra786/low-level-dev-skills. The mohitmishra786 account on GitHub publishes rust-profiling.

More from mohitmishra786/low-level-dev-skills

All 54

Similar to Rust Profiling

More Rust