[][src]Struct reqray::CallPathTiming

pub struct CallPathTiming { /* fields omitted */ }

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::Identifiers of their ancestor spans are also the same.

Implementations

impl CallPathTiming[src]

pub fn static_span_meta(&self) -> &'static Metadata<'static>[src]

The metadata associated with the called instrumented span, includes e.g. the name of the function that is being executed.

pub fn call_count(&self) -> usize[src]

The number of times a new span with this call path was created.

Typically, the number of times a function was called.

pub fn sum_with_children(&self) -> Duration[src]

The total sum of durations between entering and leaving spans with this call path. The time spent in sub spans is included.

pub fn sum_without_children(&self) -> Duration[src]

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.

pub fn children(&self) -> impl Iterator<Item = &CallPathPoolId>[src]

An iterator over the IDs of all children.

Trait Implementations

impl Clone for CallPathTiming[src]

impl Debug for CallPathTiming[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.