pub struct ProfilerSummary {
pub scope_id: ScopeId,
pub scope_name: &'static str,
pub started_at_nanos: u128,
pub total_duration_us: u64,
pub records: Vec<MinimalSpanRecord>,
pub per_category: [CategorySummary; 21],
pub interner: Option<Arc<DimInterner>>,
}Fields§
§scope_id: ScopeId§scope_name: &'static str§started_at_nanos: u128§total_duration_us: u64§records: Vec<MinimalSpanRecord>§per_category: [CategorySummary; 21]§interner: Option<Arc<DimInterner>>Implementations§
Source§impl ProfilerSummary
impl ProfilerSummary
pub fn category(&self, c: ProfilerCategory) -> CategorySummary
pub fn total_calls(&self) -> u64
pub fn from_records( scope_id: ScopeId, scope_name: &'static str, started_at_nanos: u128, total_duration_us: u64, records: Vec<MinimalSpanRecord>, interner: Option<Arc<DimInterner>>, ) -> Self
pub fn flow_category() -> ProfilerCategory
Trait Implementations§
Source§impl Clone for ProfilerSummary
impl Clone for ProfilerSummary
Source§fn clone(&self) -> ProfilerSummary
fn clone(&self) -> ProfilerSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProfilerSummary
impl Debug for ProfilerSummary
Source§impl Deserialize<'static> for ProfilerSummary
impl Deserialize<'static> for ProfilerSummary
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ProfilerSummary
impl !UnwindSafe for ProfilerSummary
impl Freeze for ProfilerSummary
impl Send for ProfilerSummary
impl Sync for ProfilerSummary
impl Unpin for ProfilerSummary
impl UnsafeUnpin for ProfilerSummary
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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