Skip to main content

Crate hotpath_meta

Crate hotpath_meta 

Source
Expand description

hotpath-rs is a simple async Rust profiler. It instruments functions, channels, futures, and streams to quickly find bottlenecks and focus optimizations where they matter most. It can provide actionable insights into time, memory, and data flow with minimal setup.

§Setup & Usage

For a complete setup guide, examples, and advanced configuration, visit hotpath.rs.

Modules§

wrap
Mirror of std paths so instrumented types can be used as drop-in replacements by prefixing imports with hotpath_meta::wrap:: (e.g. hotpath_meta::wrap::std::sync::RwLock).

Macros§

axum
channel
dbg
future
gauge
io
measure_block
mutex
rw_lock
stream
tokio_runtime
val

Structs§

CountingAllocator
No-op counterpart of the tracking allocator: a pure pass-through to the inner allocator, so a #[global_allocator] declaration compiles unchanged with the hotpath-meta feature disabled.
GaugeHandle
HotpathGuard
HotpathGuardBuilder
ValHandle

Enums§

Format
Output format for profiling reports.
Section

Traits§

IntoF64

Functions§

io_unwrap
No-op counterpart of the enabled-mode io_unwrap. io! returns its argument unchanged when profiling is disabled, so unwrapping is the identity and call sites compile identically in both modes.
measure_async
measure_async_future
measure_async_future_log
measure_async_log
measure_sync
measure_sync_log

Attribute Macros§

future_fn
Instruments an async function to track its lifecycle as a Future.
main
Initializes the hotpath profiling system and generates a performance report on program exit.
measure
Instruments a function to measure execution time or memory allocations.
measure_all
Instruments all functions in a module or impl block with the measure profiling macro.
skip
Marks a function to be excluded from profiling when used with measure_all.