pub struct SpanGraphRef<'a> {
pub(crate) graph: Arc<SpanGraph>,
pub(crate) store: &'a Store,
}
Fields§
§graph: Arc<SpanGraph>
§store: &'a Store
Implementations§
Source§impl<'a> SpanGraphRef<'a>
impl<'a> SpanGraphRef<'a>
pub fn first_span(&self) -> SpanRef<'a>
pub fn id(&self) -> NonZeroUsize
pub fn nice_name(&self) -> (&str, &str)
pub fn count(&self) -> usize
pub fn root_spans(&self) -> impl DoubleEndedIterator<Item = SpanRef<'a>> + '_
fn recursive_spans(&self) -> impl DoubleEndedIterator<Item = SpanRef<'a>> + '_
fn recursive_spans_par(&self) -> impl ParallelIterator<Item = SpanRef<'a>> + '_
fn events_vec_ref(&self) -> &Vec<SpanGraphEvent>
pub fn events( &self, ) -> impl DoubleEndedIterator<Item = SpanGraphEventRef<'a>> + '_
pub fn events_par( &self, ) -> impl ParallelIterator<Item = SpanGraphEventRef<'a>> + '_
pub fn children(&self) -> impl DoubleEndedIterator<Item = SpanGraphRef<'a>> + '_
pub fn children_par( &self, ) -> impl ParallelIterator<Item = SpanGraphRef<'a>> + '_
pub fn bottom_up(&self) -> impl Iterator<Item = SpanBottomUpRef<'a>> + '_
pub fn max_depth(&self) -> u32
pub fn self_time(&self) -> Timestamp
pub fn total_time(&self) -> Timestamp
pub fn self_allocations(&self) -> u64
pub fn self_deallocations(&self) -> u64
pub fn self_persistent_allocations(&self) -> u64
pub fn self_allocation_count(&self) -> u64
pub fn self_span_count(&self) -> u64
pub fn total_allocations(&self) -> u64
pub fn total_deallocations(&self) -> u64
pub fn total_persistent_allocations(&self) -> u64
pub fn total_allocation_count(&self) -> u64
pub fn total_span_count(&self) -> u64
pub fn corrected_self_time(&self) -> Timestamp
pub fn corrected_total_time(&self) -> Timestamp
Trait Implementations§
Source§impl<'a> Clone for SpanGraphRef<'a>
impl<'a> Clone for SpanGraphRef<'a>
Source§fn clone(&self) -> SpanGraphRef<'a>
fn clone(&self) -> SpanGraphRef<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for SpanGraphRef<'a>
impl<'a> RefUnwindSafe for SpanGraphRef<'a>
impl<'a> Send for SpanGraphRef<'a>
impl<'a> Sync for SpanGraphRef<'a>
impl<'a> Unpin for SpanGraphRef<'a>
impl<'a> UnwindSafe for SpanGraphRef<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more