pub struct SpanBottomUp {
pub self_spans: Vec<NonZeroUsize>,
pub children: Vec<Arc<SpanBottomUp>>,
pub example_span: NonZeroUsize,
pub max_depth: OnceLock<u32>,
pub events: OnceLock<Vec<SpanGraphEvent>>,
pub self_time: OnceLock<Timestamp>,
pub corrected_self_time: OnceLock<Timestamp>,
pub self_allocations: OnceLock<u64>,
pub self_deallocations: OnceLock<u64>,
pub self_persistent_allocations: OnceLock<u64>,
pub self_allocation_count: OnceLock<u64>,
}
Fields§
§self_spans: Vec<NonZeroUsize>
§children: Vec<Arc<SpanBottomUp>>
§example_span: NonZeroUsize
§max_depth: OnceLock<u32>
§events: OnceLock<Vec<SpanGraphEvent>>
§self_time: OnceLock<Timestamp>
§corrected_self_time: OnceLock<Timestamp>
§self_allocations: OnceLock<u64>
§self_deallocations: OnceLock<u64>
§self_persistent_allocations: OnceLock<u64>
§self_allocation_count: OnceLock<u64>
Implementations§
Source§impl SpanBottomUp
impl SpanBottomUp
pub fn new( self_spans: Vec<NonZeroUsize>, example_span: NonZeroUsize, children: Vec<Arc<SpanBottomUp>>, ) -> Self
Auto Trait Implementations§
impl !Freeze for SpanBottomUp
impl RefUnwindSafe for SpanBottomUp
impl Send for SpanBottomUp
impl Sync for SpanBottomUp
impl Unpin for SpanBottomUp
impl UnwindSafe for SpanBottomUp
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
§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