pub struct AllocationDelta {
pub allocations_delta: i64,
pub deallocations_delta: i64,
pub bytes_delta: i64,
pub duration: Duration,
}Expand description
Change in allocations over time.
Fields§
§allocations_delta: i64Change in allocation count.
deallocations_delta: i64Change in deallocation count.
bytes_delta: i64Change in bytes allocated.
duration: DurationDuration of the delta period.
Implementations§
Source§impl AllocationDelta
impl AllocationDelta
Sourcepub fn memory_grew(&self) -> bool
pub fn memory_grew(&self) -> bool
Check if memory grew.
Sourcepub fn allocation_rate(&self) -> f64
pub fn allocation_rate(&self) -> f64
Get allocation rate per second.
Trait Implementations§
Source§impl Clone for AllocationDelta
impl Clone for AllocationDelta
Source§fn clone(&self) -> AllocationDelta
fn clone(&self) -> AllocationDelta
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 moreAuto Trait Implementations§
impl Freeze for AllocationDelta
impl RefUnwindSafe for AllocationDelta
impl Send for AllocationDelta
impl Sync for AllocationDelta
impl Unpin for AllocationDelta
impl UnwindSafe for AllocationDelta
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