Struct prometheus::local::LocalHistogram [] [src]

pub struct LocalHistogram { /* fields omitted */ }

LocalHistogram is used for performance and in single-thread. Sometimes, if you very care the performance, you can use the LocalHistogram and then flush the metric interval.

Methods

impl LocalHistogram
[src]

[src]

observe adds a single observation to the Histogram.

[src]

start_timer returns a LocalHistogramTimer to track a duration.

[src]

clear clears the local metric.

[src]

flush flushes the local metric to the Histogram metric.

Trait Implementations

impl Clone for LocalHistogram
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Drop for LocalHistogram
[src]

[src]

Executes the destructor for this type. Read more