pub struct CommandHistogram {
pub calls: usize,
pub histogram_usec: HashMap<u32, u32>,
}
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§
Source§impl Default for CommandHistogram
impl Default for CommandHistogram
Source§fn default() -> CommandHistogram
fn default() -> CommandHistogram
Returns the “default value” for a type. Read more
Source§impl FromValue for CommandHistogram
impl FromValue for CommandHistogram
Auto Trait Implementations§
impl Freeze for CommandHistogram
impl RefUnwindSafe for CommandHistogram
impl Send for CommandHistogram
impl Sync for CommandHistogram
impl Unpin for CommandHistogram
impl UnwindSafe for CommandHistogram
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more