Overview of hotpath-rs profiling capabilities
mainhotpath-rs is a Rust performance profiling toolkit designed to identify where code spends time, consumes CPU, and allocates memory. It provides visibility into various layers of a Rust application, including:
- Time, CPU & Memory: Identify expensive functions, allocation hotspots, and memory leaks.
- Async Observability: Monitor futures, channels, and streams.
- I/O Monitoring: Track throughput and latency for sync/async I/O streams (files, TCP, compression).
- SQL Query Profiling: Performance metrics for
sqlxandDiesel. - HTTP Calls Profiling: Per-endpoint latency and error metrics for
reqwest. - Concurrency: Monitor Mutex/RwLock wait times and contention.
- Tokio Runtime: Monitor workers, scheduling, and queues.
Profiling can be performed using a live TUI dashboard for real-time monitoring or by generating static one-off reports for analysis.