pub struct CallPathTiming { /* private fields */ }
Expand description
A CallPathTiming is an aggregation of all spans with the same
call path. That means that their callsite::Identifier
is
the same and all the callsite::Identifier
s of their ancestor
spans are also the same.
Implementations§
Source§impl CallPathTiming
impl CallPathTiming
Sourcepub fn static_span_meta(&self) -> &'static Metadata<'static>
pub fn static_span_meta(&self) -> &'static Metadata<'static>
The metadata associated with the called instrumented span, includes e.g. the name of the function that is being executed.
Sourcepub fn call_count(&self) -> usize
pub fn call_count(&self) -> usize
The number of times a new span with this call path was created.
Typically, the number of times a function was called.
Sourcepub fn span_alive(&self) -> Duration
pub fn span_alive(&self) -> Duration
The sum between span new and close events.
Sourcepub fn sum_with_children(&self) -> Duration
pub fn sum_with_children(&self) -> Duration
The total sum of durations between entering and leaving spans with this call path. The time spent in sub spans is included.
Sourcepub fn sum_without_children(&self) -> Duration
pub fn sum_without_children(&self) -> Duration
The total sum of durations between entering and leaving spans with this call path but the durations where we entered a sub span are excluded.
Sourcepub fn children(&self) -> impl Iterator<Item = &CallPathPoolId>
pub fn children(&self) -> impl Iterator<Item = &CallPathPoolId>
An iterator over the IDs of all children.
Trait Implementations§
Source§impl Clone for CallPathTiming
impl Clone for CallPathTiming
Source§fn clone(&self) -> CallPathTiming
fn clone(&self) -> CallPathTiming
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more