Struct rustis::commands::CommandHistogram
source · pub struct CommandHistogram {
pub calls: usize,
pub histogram_usec: HashMap<u32, u32>,
}Expand description
Command Histogram for the latency_histogram commands.
Fields§
§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§fn default() -> CommandHistogram
fn default() -> CommandHistogram
Returns the “default value” for a type. Read more
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 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