#[repr(C)]pub struct mi_memory_snapshot_t {
pub size: usize,
pub version: c_int,
pub live_bytes: u64,
pub accum_bytes: u64,
pub live_count: u64,
pub accum_count: u64,
}Expand description
Mirrors mi_memory_snapshot_t (include/mimalloc/memory-events.h) field-for-field.
Fields§
§size: usizesizeof(mi_memory_snapshot_t); fill in before calling mi_memory_snapshot.
version: c_intMI_MEMORY_SNAPSHOT_VERSION; fill in before calling mi_memory_snapshot.
live_bytes: u64Tracked live usable bytes right now.
accum_bytes: u64Cumulative usable bytes ever allocated.
live_count: u64Tracked live allocation count right now.
accum_count: u64Cumulative count of successful allocate events.
Trait Implementations§
Source§impl Clone for mi_memory_snapshot_t
impl Clone for mi_memory_snapshot_t
Source§fn clone(&self) -> mi_memory_snapshot_t
fn clone(&self) -> mi_memory_snapshot_t
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for mi_memory_snapshot_t
Source§impl Debug for mi_memory_snapshot_t
impl Debug for mi_memory_snapshot_t
Source§impl Default for mi_memory_snapshot_t
impl Default for mi_memory_snapshot_t
Source§fn default() -> mi_memory_snapshot_t
fn default() -> mi_memory_snapshot_t
Returns the “default value” for a type. Read more
impl Eq for mi_memory_snapshot_t
Source§impl PartialEq for mi_memory_snapshot_t
impl PartialEq for mi_memory_snapshot_t
impl StructuralPartialEq for mi_memory_snapshot_t
Auto Trait Implementations§
impl Freeze for mi_memory_snapshot_t
impl RefUnwindSafe for mi_memory_snapshot_t
impl Send for mi_memory_snapshot_t
impl Sync for mi_memory_snapshot_t
impl Unpin for mi_memory_snapshot_t
impl UnsafeUnpin for mi_memory_snapshot_t
impl UnwindSafe for mi_memory_snapshot_t
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