Timings

Type Alias Timings 

Source
pub type Timings = TimingsView<SpanGroup>;
Expand description

Mapping of SpanGroups to the Timing information recorded for them; inherits all BTreeMap methods.

Aliased Type§

pub struct Timings(pub BTreeMap<SpanGroup, Histogram<u64>>);

Tuple Fields§

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

Implementations§

Source§

impl Timings

Source

pub fn aggregator_is_consistent<G>(&self, f: impl Fn(&SpanGroup) -> G) -> bool
where G: Ord,

Checks whether an aggregation function f used in Self::aggregate is consistent according to the following definition:

  • the values resulting from applying f to span groups are called aggregate keys
  • the sets of span groups corresponding to each aggregate key are called aggregates.
  • an aggregation function is consistent if and only if, for each aggregate, all the span groups in the aggregate have the same callsite.
Source

pub fn span_group_to_parent(&self) -> BTreeMap<SpanGroup, Option<SpanGroup>>

Returns a map that associates each SpanGroup to its parent.