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.

Macros§

measure_block

Structs§

FunctionStats
GuardBuilder
Builder for creating a hotpath profiling guard with custom configuration.
HotPath
MetricsDataJson
Structured per-function profiling metrics data.
MetricsJson
JSON representation of profiling metrics.

Enums§

Format
Output format for profiling reports.
MetricType
Represents different types of profiling metrics with their values.
ProfilingMode
Profiling mode indicating what type of measurements were collected.

Traits§

MetricsProvider
Trait for accessing profiling metrics data from custom reporters.
Reporter
Trait for implementing custom profiling report output.

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.