Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
blacktop avatar

Rust Profiling

  • 5 installs
  • 17 repo stars
  • Updated July 16, 2026
  • blacktop/dotfiles

Rust-profiling is a skill for profiling Rust code with samply to identify CPU bottlenecks.

About

Rust-profiling helps profile Rust binaries with samply to identify CPU bottlenecks. A developer uses it when performance is slower than expected, before optimizing to measure first, or after optimization to verify improvement. It covers building with debug symbols, recording with samply into the Firefox Profiler UI, and analyzing saved profile.json files via a bundled script.

  • Profiles Rust binaries with samply to find CPU bottlenecks
  • Covers the profiling Cargo profile, samply record, and Firefox Profiler UI
  • Includes a Python script to analyze saved profile.json files

Rust Profiling by the numbers

  • 5 all-time installs (skills.sh)
  • Ranked #93 of 121 Rust skills by installs in the Skillselion catalog
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

rust-profiling capabilities & compatibility

Capabilities
rust profiling · instruments profiling · cpu profiling
Use cases
debugging
From the docs

What rust-profiling says it does

Profile Rust code using samply to identify CPU bottlenecks.
SKILL.md
Profile Rust binaries to find CPU bottlenecks using [samply]
SKILL.md
Before optimizing (measure first!)
SKILL.md
npx skills add https://github.com/blacktop/dotfiles --skill rust-profiling

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs5
repo stars17
Last updatedJuly 16, 2026
Repositoryblacktop/dotfiles

What it does

Profile a Rust binary with samply to find CPU bottlenecks before and after optimization.

Who is it for?

Profiling Rust binaries to find CPU bottlenecks before and after optimizing.

When should I use this skill?

Performance is slow, before optimizing, or when the user asks to profile.

What you get

CPU bottlenecks in a Rust binary are identified via a samply profile before optimizing.

Files

SKILL.mdMarkdownGitHub ↗

Rust Profiling with Samply

Profile Rust binaries to find CPU bottlenecks using samply.

Quick Start

# 1. Ensure profiling profile exists in Cargo.toml (see reference.md)
# 2. Build with debug symbols
cargo build --profile profiling

# 3. Profile (opens Firefox Profiler UI)
samply record ./target/profiling/<binary> [args...]

# 4. Or save for CLI analysis
samply record --save-only -o profile.json ./target/profiling/<binary>
python3 ~/.agents/skills/rust-profiling/scripts/analyze_profile.py profile.json

Skill Files

FilePurpose
reference.mdCargo.toml setup, samply options, troubleshooting
examples.mdCommon profiling scenarios and analysis patterns
optimization.mdPost-profiling fixes: source patterns, release-profile tuning, PGO, BOLT, what doesn't work
scripts/analyze_profile.pyCLI tool to analyze saved profile.json files

When to Use

  • Performance is slower than expected
  • Before optimizing (measure first!)
  • After optimization (verify improvement)
  • Investigating CPU-bound operations

What to Look For

PatternMeaningAction
High self-timeFunction itself is slowDirect optimization target
High total-timeCalled often or slow calleesCheck call frequency
malloc/alloc in hot pathAllocation overheadPool, arena, or stack allocate
pthread_mutex/parking_lotLock contentionReduce lock scope or use lock-free

Related skills

Rustbackend

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.