/odin-native:rust-profilingfrom ODIN Native
Profiles Rust binaries using flamegraphs, cargo-bloat, cargo-llvm-lines, Criterion, perf, heaptrack, or DHAT. Helps identify hot paths, binary size bloat, and monomorphization issues.
Ships in ODIN Native. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Field | Bound contract |
|---|---|
| Trigger | Profiling Rust performance, reducing binary size, measuring monomorphization bloat, writing Criterion benchmarks, or interpreting flamegraphs and perf output. |
| Authority | Read-only. Emits a guidance report and command transcripts to chat. No source or remote mutation. |
| Side effect | Emits a structured guidance report with profiling commands, benchmark setup, and interpretation. No source files are modified. |
| Done | A report is emitted that names the hot path, bloat source, size contributor, or benchmark result and the next action to take. |
release-with-debug or CARGO_PROFILE_RELEASE_DEBUG=true).cargo-flamegraph, cargo-bloat, cargo-llvm-lines, Criterion, perf, heaptrack, or valgrind --tool=dhat.debug = true or set CARGO_PROFILE_RELEASE_DEBUG=true. For line-level attribution with faster builds, use debug = 1. For better call graphs, set RUSTFLAGS="-C force-frame-pointers=yes". Done when: the binary has debug symbols and frame pointers are configured as needed.cargo flamegraph --bin <name> -- <args>, or use perf record -g followed by stackcollapse-perf.pl and flamegraph.pl. Look for wide top frames, unexpected standard-library and allocator frames, and thin closure frames. Done when: a flamegraph SVG identifies hot leaves.cargo bloat --release -n 20, cargo bloat --release --crates, or cargo bloat --release --filter <crate>. Compare before and after with saved output. Done when: the largest size contributors are listed.cargo llvm-lines --release | head -40. A high Copies count usually means generic monomorphization; confirm by reading the function and its type parameters. Reduce it with a thin generic wrapper plus a concrete inner function. Done when: the functions with the most LLVM IR and copies are named.criterion to dev-dependencies, create benches/<name>.rs with criterion_group! and criterion_main!, use black_box to prevent optimization, and compare with saved baselines. Done when: a benchmark file runs and produces a report.perf record -g -F 999 <binary>, report with perf report or perf annotate, and gather quick counters with perf stat. Done when: the hot function and call graph are visible.heaptrack <binary> and inspect with heaptrack_print, or run valgrind --tool=dhat <binary> and view dhat-out.* with dh_view.html. Done when: allocation hotspots and lifetimes are identified.| Failure class | Behavior |
|---|---|
| No debug symbols | Rebuild with debug = true or debug = 1. |
| Incomplete call graph | Set RUSTFLAGS="-C force-frame-pointers=yes" and disable ASLR with setarch $(uname -m) -R. |
| Flamegraph permission denied | Lower perf_event_paranoid to 1 or run with sudo/DTrace on macOS. |
| Benchmark results are noisy | Increase measurement_time, sample_size, and warm_up_time in Criterion. |
| Allocation profile is too large | Filter to a smaller workload or reduce profiling duration. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
138 skills in this plugin
/abi-and-calling-conventionsUse when explaining System V AMD64, ARM AAPCS, RISC-V psABI, stack frames, variadic calls, or FFI register rules. Not for the Rust FFI binding layer: use rust-ffi./adc-dac-baremetalUse when configuring ADC sampling time, DMA-driven ADC, calibration, or DAC channel setup on bare-metal MCUs. Not for the DMA stream itself: use dma-baremetal./af-xdpUse when creating AF_XDP sockets, configuring UMEM and XSK rings, writing an XDP redirect program, or choosing copy versus zero-copy mode. Not for full kernel bypass: use dpdk./apple-siliconUse when tuning or profiling native code on Apple M-series Macs: unified memory, 16 KiB pages, Accelerate and Metal for matrix work, xctrace and leaks, Rosetta 2, or sysctl hardware queries./arm-sveUse when writing or porting AArch64 SIMD to SVE or SVE2: arm_sve.h intrinsics, predicates, vector-length-agnostic loops, auto-vectorization, or SVE registers in GDB. Not for NEON: use simd-intrinsics./assembly-armUse when reading or writing AArch64 or AArch32 Thumb assembly, inline asm in C, AAPCS64 register roles, or NEON and SVE vector code. Not for ABI detail across ISAs: use abi-and-calling-conventions.npx claudepluginhub outlinedriven/odin-claude-plugin --plugin odin-nativeOther plugins' skills for the same job