pub struct ReportOperation { /* private fields */ }Expand description
Memory allocation statistics for a single operation in a report.
Implementations§
Source§impl ReportOperation
impl ReportOperation
Sourcepub fn total_bytes_allocated(&self) -> u64
pub fn total_bytes_allocated(&self) -> u64
Returns the total bytes allocated across all iterations for this operation.
Sourcepub fn total_allocations_count(&self) -> u64
pub fn total_allocations_count(&self) -> u64
Returns the total number of allocations across all iterations for this operation.
Sourcepub fn total_iterations(&self) -> u64
pub fn total_iterations(&self) -> u64
Returns the total number of iterations recorded for this operation.
Sourcepub fn mean_bytes(&self) -> u64
pub fn mean_bytes(&self) -> u64
Calculates the mean bytes allocated per iteration.
Sourcepub fn mean_allocations(&self) -> u64
pub fn mean_allocations(&self) -> u64
Calculates the mean number of allocations per iteration.
Sourcepub fn mean(&self) -> u64
pub fn mean(&self) -> u64
Calculates the mean bytes allocated per iteration.
This is an alias for mean_bytes to maintain backward compatibility.
Trait Implementations§
Source§impl Clone for ReportOperation
impl Clone for ReportOperation
Source§fn clone(&self) -> ReportOperation
fn clone(&self) -> ReportOperation
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 moreSource§impl Debug for ReportOperation
impl Debug for ReportOperation
Auto Trait Implementations§
impl Freeze for ReportOperation
impl RefUnwindSafe for ReportOperation
impl Send for ReportOperation
impl Sync for ReportOperation
impl Unpin for ReportOperation
impl UnwindSafe for ReportOperation
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