pub type TimingsView<K> = Wrapper<BTreeMap<K, Timing>>;Aliased Type§
pub struct TimingsView<K>(pub BTreeMap<K, Histogram<u64>>);Tuple Fields§
§0: BTreeMap<K, Histogram<u64>>Implementations§
Source§impl<K> TimingsView<K>
impl<K> TimingsView<K>
Sourcepub fn aggregate<G>(&self, f: impl Fn(&K) -> G) -> TimingsView<G>where
G: Ord,
pub fn aggregate<G>(&self, f: impl Fn(&K) -> G) -> TimingsView<G>where
G: Ord,
Combines histogram values according to sets of keys that yield the same value when f
is applied.
Sourcepub fn add(&mut self, other: TimingsView<K>)where
K: Ord,
pub fn add(&mut self, other: TimingsView<K>)where
K: Ord,
Combines the histograms of self with those of another TimingsView.
Sourcepub fn summary_stats(&self) -> Wrapper<BTreeMap<K, SummaryStats>>
pub fn summary_stats(&self) -> Wrapper<BTreeMap<K, SummaryStats>>
Produces a map whose values are the SummaryStats of self’s histogram values.