A simple Rust profiler that shows exactly why your code is slow
Performance profiling for developers and coding agents. Profile CPU, memory allocations, async tasks, SQL queries, I/O, and lock contention in one place. Explore performance metrics in a live TUI, or export to Prometheus and Grafana when you need production monitoring.
Copies a setup prompt for your coding agent.
Or try the live demo:
Used by 225 open-source projects, including:
Already using Criterion.rs?
Add CPU and allocation profiling to existing benchmarks with minimal changes.
Explore Criterion integration →Catch performance regressions in CI
Compare benchmark results across pull requests with hotpath-cloud.
Explore hotpath-cloud →hotpath-rs helps you distinguish between functions that are slow because they wait on I/O and those that are CPU-intensive. Instrument functions, channels, futures, streams, SQL queries, HTTP calls, and byte-level I/O to find bottlenecks and focus optimizations where they matter most. Get actionable insights into time, memory, and async data flow with minimal setup. For noise-free CI benchmarks, it can also count executed CPU instructions with Callgrind instead of measuring wall-clock time.
You can use it to produce one-off performance (timing, memory or CPU) reports:
correlate all performance signals in Grafana with minimal profiling overhead:
catch performance regressions on every pull request with a simple CI integration:
inspect throughput and latency of network, file or compression I/O streams:
analyze SQL/HTTP calls performance with automatic source function attribution:
monitor throughput, performance and max queue depth of instrumented channels:
or use the live TUI dashboard to monitor real-time performance and async data flow metrics with debug info:
Features
- Time, CPU & memory profiling - identify expensive functions, allocation hotspots, and investigate memory leaks.
- Async observability - futures, channels and streams.
- I/O monitoring - bytes, throughput, latency of any sync or async IO stream like files, TCP, or compression.
- SQL query profiling - query performance metrics for sqlx and Diesel.
- HTTP calls profiling - per-endpoint latency and error metrics for reqwest and ureq.
- HTTP server profiling - per-route response time and error metrics for axum.
- Concurrency metrics - Mutex/RwLock wait time and contention.
- Tokio runtime monitoring - workers, scheduling and queues.
- Prometheus & Grafana integration - export profiling metrics to your existing dashboards.
- Live TUI dashboard & static reports - real-time or one-off analysis.
- CI regression detection - benchmark every PR automatically.
- Deterministic instruction counts - Callgrind-based CPU measurements, stable across noisy CI runners.
- MCP server and CLI skill for AI agents - analyze profiling and benchmarks data.
- Zero cost when disabled - fully feature-gated.