#[non_exhaustive]pub struct CommandHistogram {
pub calls: usize,
pub histogram_usec: HashMap<u32, u32>,
}Expand description
Command Histogram for the latency_histogram commands.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.calls: usizeThe 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§impl<'de> Deserialize<'de> for CommandHistogram
impl<'de> Deserialize<'de> for CommandHistogram
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CommandHistogram
impl RefUnwindSafe for CommandHistogram
impl Send for CommandHistogram
impl Sync for CommandHistogram
impl Unpin for CommandHistogram
impl UnsafeUnpin 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