pub struct HdrHistogram { /* private fields */ }
Expand description

An High-Dynamic Range Histogram

HdrHistograms can record and analyze sampled data in low-latency applications. Read more about HDR Histograms on http://hdrhistogram.org/

This structure uses the hdrhistogram crate under the hood.

Implementations

Instantiates a new HdrHistogram with a max_bound

For instance, a max_bound of 60 * 60 * 1000 will allow to record durations varying from 1 millisecond to 1 hour.

Records a value to the histogram

This is a saturating record: if the value is higher than max_bound, max_bound will be recorded instead.

Clears the values of the histogram

Get the number of recorded values in the histogram.

Get the lowest recorded value level in the histogram. If the histogram has no recorded values, the value returned will be 0.

Get the highest recorded value level in the histogram. If the histogram has no recorded values, the value returned is undefined.

Get the computed mean value of all recorded values in the histogram.

Get the computed standard deviation of all recorded values in the histogram

Get the value at the 90% quantile.

Get the value at the 95% quantile.

Get the value at the 99% quantile.

Get the value at the 99.9% quantile.

Get the value at the 99.99% quantile.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.