pub struct Measurement {
pub allocations: usize,
pub reallocations: usize,
pub net_bytes: i128,
pub peak_bytes: usize,
pub elapsed: Duration,
}Expand description
Measurement
Counters for one thread’s scoped workload, excluding setup and reporting.
Fields§
§allocations: usizeSuccessful allocation calls, excluding reallocations.
reallocations: usizeSuccessful reallocation calls.
net_bytes: i128Allocated minus freed bytes; may be negative for preexisting allocations.
peak_bytes: usizePeak positive net bytes relative to scope entry, not process heap or RSS.
elapsed: DurationNative elapsed time for the workload.
Trait Implementations§
Source§impl Clone for Measurement
impl Clone for Measurement
impl Copy for Measurement
Source§impl Debug for Measurement
impl Debug for Measurement
Source§impl Default for Measurement
impl Default for Measurement
impl Eq for Measurement
Source§impl PartialEq for Measurement
impl PartialEq for Measurement
impl StructuralPartialEq for Measurement
Auto Trait Implementations§
impl Freeze for Measurement
impl RefUnwindSafe for Measurement
impl Send for Measurement
impl Sync for Measurement
impl Unpin for Measurement
impl UnsafeUnpin for Measurement
impl UnwindSafe for Measurement
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