Struct rpcperf_dataspec::histogram::Histogram
source · pub struct Histogram {
pub grouping_power: u8,
pub max_value_power: u8,
pub index: Vec<usize>,
pub count: Vec<u64>,
}Expand description
This histogram is a sparse, columnar representation of the regular Histogram. It is significantly smaller than a regular Histogram when a large number of buckets are zero, which is a frequent occurence; consequently it is used as the serialization format of the Histogram. It stores an individual vector for each field of non-zero buckets. Assuming index[0] = n, (index[0], count[0]) corresponds to the nth bucket.
Fields§
§grouping_power: u8parameters representing the resolution and the range of the histogram tracking request latencies
max_value_power: u8§index: Vec<usize>indices for the non-zero buckets in the histogram
count: Vec<u64>histogram bucket counts corresponding to the indices
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Histogram
impl<'de> Deserialize<'de> for Histogram
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
source§impl PartialEq for Histogram
impl PartialEq for Histogram
impl StructuralPartialEq for Histogram
Auto Trait Implementations§
impl RefUnwindSafe for Histogram
impl Send for Histogram
impl Sync for Histogram
impl Unpin for Histogram
impl UnwindSafe for Histogram
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