Crate hotpath

Crate hotpath 

Source
Expand description

A lightweight, easy-to-configure Rust profiler that shows exactly where your code spends time and allocates memory. Instrument any function or code block with to quickly spot bottlenecks, and focus your optimizations where they matter most.

§Setup & Usage

For a complete setup guide, examples, and advanced configuration, see the GitHub repository.

Re-exports§

pub use crate::Format;

Modules§

channels
futures
streams

Macros§

channel
future
measure_block
stream

Structs§

FunctionStats
FunctionsGuardBuilder
HotPath
MeasurementGuard
MeasurementGuardWithLog

Enums§

Format
Output format for profiling reports.

Traits§

MetricsProvider
Reporter

Functions§

measure_with_log
measure_with_log_async

Type Aliases§

GuardBuilderDeprecated

Attribute Macros§

main
Initializes the hotpath profiling system and generates a performance report on program exit.
measure
Instruments a function to send performance measurements to the hotpath profiler.
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.