TimingsView

Type Alias TimingsView 

Source
pub type TimingsView<K> = Wrapper<BTreeMap<K, Timing>>;
Expand description

Wrapper of BTreeMap<K, Timing>; inherits all BTreeMap methods.

Aliased Type§

pub struct TimingsView<K>(pub BTreeMap<K, Histogram<u64>>);

Tuple Fields§

§0: BTreeMap<K, Histogram<u64>>

Implementations§

Source§

impl<K> TimingsView<K>

Source

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.

Source

pub fn add(&mut self, other: TimingsView<K>)
where K: Ord,

Combines the histograms of self with those of another TimingsView.

Source

pub fn summary_stats(&self) -> Wrapper<BTreeMap<K, SummaryStats>>
where K: Ord + Clone,

Produces a map whose values are the SummaryStats of self’s histogram values.