Expand description
low overhead timing infrastructure for perf measurement
provides rdtsc-based timing on x86_64 and histogram tracking
Re-exports§
pub use histogram::Histogram;pub use histogram::Percentiles;pub use rdtsc::cycles_to_nanos;pub use rdtsc::rdtsc;pub use rdtsc::rdtsc_end;pub use rdtsc::rdtsc_start;pub use rdtsc::rdtscp;pub use timer::ScopedTimer;pub use timer::Timer;pub use timer::TimerGuard;
Modules§
- histogram
- high-performance histogram for latency tracking
- rdtsc
- rdtsc (read time-stamp counter) wrapper for x86_64
- timer
- timer utilities for measuring code execution time
Macros§
- time_
block - macro for timing a block of code
- time_
if_ enabled - macro for conditionally timing based on feature flag
Structs§
- Latency
Stats - latency statistics
- Time
Point - timing measurement point
Functions§
- cpu_
frequency - gets the calibrated cpu frequency in cycles per second
- cycles_
multiplier - gets the precomputed Q32 cycles multiplier
- init
- initializes the timing subsystem
- nanos_
multiplier - gets the precomputed Q32 nanos multiplier