pub struct ResourceUsageOutput { /* private fields */ }Available on crate features
alloc_tracker or all_the_time only.Expand description
Combined resource usage measurement output.
This struct contains the measurement results from all configured resource usage tracking. The available methods depend on which features are enabled and which measurements were configured during the benchmark run.
Implementations§
Source§impl ResourceUsageOutput
impl ResourceUsageOutput
Sourcepub fn allocs(&self) -> Option<&Report>
Available on crate feature alloc_tracker only.
pub fn allocs(&self) -> Option<&Report>
alloc_tracker only.Returns the allocation tracking report, if allocation tracking was configured.
This method is only available when the alloc_tracker feature is enabled.
Returns None if allocation tracking was not configured for this benchmark run.
Sourcepub fn processor_time(&self) -> Option<&Report>
Available on crate feature all_the_time only.
pub fn processor_time(&self) -> Option<&Report>
all_the_time only.Returns the processor time tracking report, if processor time tracking was configured.
This method is only available when the all_the_time feature is enabled.
Returns None if processor time tracking was not configured for this benchmark run.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResourceUsageOutput
impl RefUnwindSafe for ResourceUsageOutput
impl Send for ResourceUsageOutput
impl Sync for ResourceUsageOutput
impl Unpin for ResourceUsageOutput
impl UnsafeUnpin for ResourceUsageOutput
impl UnwindSafe for ResourceUsageOutput
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> 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