Struct reqray::CallPathTiming
source · [−]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::Identifiers of their ancestor
spans are also the same.
Implementations
sourceimpl 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 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
sourceimpl Clone for CallPathTiming
impl Clone for CallPathTiming
sourcefn clone(&self) -> CallPathTiming
fn clone(&self) -> CallPathTiming
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl !RefUnwindSafe for CallPathTiming
impl Send for CallPathTiming
impl Sync for CallPathTiming
impl Unpin for CallPathTiming
impl !UnwindSafe for CallPathTiming
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more