Struct redis_driver::CommandHistogram
source · Expand description
Command Histogram for the latency_histogram
commands.
Fields
calls: usize
The total calls for that command.
histogram_usec: HashMap<u32, u32>
A map of time buckets:
- Each bucket represents a latency range.
- Each bucket covers twice the previous bucket’s range.
- Empty buckets are not printed.
- The tracked latencies are between 1 microsecond and roughly 1 second.
- Everything above 1 sec is considered +Inf.
- At max there will be log2(1000000000)=30 buckets.
Trait Implementations
sourceimpl Default for CommandHistogram
impl Default for CommandHistogram
sourcefn default() -> CommandHistogram
fn default() -> CommandHistogram
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for CommandHistogram
impl Send for CommandHistogram
impl Sync for CommandHistogram
impl Unpin for CommandHistogram
impl UnwindSafe for CommandHistogram
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more