pub struct SelfProfilesReport { /* private fields */ }
Implementations§
Source§impl SelfProfilesReport
impl SelfProfilesReport
pub fn from_snapshot(data: &[InspectData]) -> Result<Vec<Self>, AnalysisError>
pub fn from_single_snapshot( data: &InspectData, ) -> Option<Result<Self, AnalysisError>>
pub fn name(&self) -> &str
pub fn root_summary(&self) -> &DurationSummary
pub fn leaf_durations(&self) -> Vec<(String, DurationSummary)>
pub fn matching_durations( &self, match_prefixes: &[String], ) -> Vec<(String, DurationSummary)>
pub fn delta_from(&self, baseline: &Self) -> Result<Self, ComparisonError>
pub fn add_rollup( &mut self, title: impl Into<String>, prefixes: impl IntoIterator<Item = impl Into<String>>, )
Trait Implementations§
Source§impl Debug for SelfProfilesReport
impl Debug for SelfProfilesReport
Source§impl Display for SelfProfilesReport
impl Display for SelfProfilesReport
Source§impl PartialEq for SelfProfilesReport
impl PartialEq for SelfProfilesReport
impl StructuralPartialEq for SelfProfilesReport
Auto Trait Implementations§
impl Freeze for SelfProfilesReport
impl RefUnwindSafe for SelfProfilesReport
impl Send for SelfProfilesReport
impl Sync for SelfProfilesReport
impl Unpin for SelfProfilesReport
impl UnwindSafe for SelfProfilesReport
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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