pub struct AllocationSnapshot { /* private fields */ }Expand description
Exact heap allocation delta recorded across a measured steady-state frame or workload scope.
Implementations§
Source§impl AllocationSnapshot
impl AllocationSnapshot
pub fn get_alloc_count(&self) -> u64
pub fn get_free_count(&self) -> u64
pub fn get_bytes_allocated(&self) -> u64
pub fn get_bytes_freed(&self) -> u64
pub fn get_live_bytes_delta(&self) -> u64
pub fn get_live_allocs_delta(&self) -> u64
pub fn get_peak_live_bytes(&self) -> u64
Trait Implementations§
Source§impl Clone for AllocationSnapshot
impl Clone for AllocationSnapshot
impl Copy for AllocationSnapshot
Source§impl Debug for AllocationSnapshot
impl Debug for AllocationSnapshot
Source§impl Default for AllocationSnapshot
impl Default for AllocationSnapshot
Source§impl<'de> Deserialize<'de> for AllocationSnapshot
impl<'de> Deserialize<'de> for AllocationSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AllocationSnapshot
Source§impl PartialEq for AllocationSnapshot
impl PartialEq for AllocationSnapshot
Source§impl Serialize for AllocationSnapshot
impl Serialize for AllocationSnapshot
impl StructuralPartialEq for AllocationSnapshot
Auto Trait Implementations§
impl Forget for AllocationSnapshot
impl Freeze for AllocationSnapshot
impl Move for AllocationSnapshot
impl RefUnwindSafe for AllocationSnapshot
impl Send for AllocationSnapshot
impl Sync for AllocationSnapshot
impl Unpin for AllocationSnapshot
impl UnsafeUnpin for AllocationSnapshot
impl UnwindSafe for AllocationSnapshot
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