pub struct Change {
pub kind: ChangeKind,
pub total_bytes: u64,
pub delta_bytes: i64,
pub request_size: u64,
}Expand description
One observed allocation change, copied out of mi_memory_change_t.
Fields§
§kind: ChangeKindWhat happened.
total_bytes: u64Tracked global live usable bytes after this operation.
delta_bytes: i64Signed change in tracked live usable bytes: positive for allocation/growth, negative for free/shrink, zero for a same-size-class resize.
request_size: u64Caller-requested size for allocate and resize; zero for free.
Trait Implementations§
impl Copy for Change
impl Eq for Change
impl StructuralPartialEq for Change
Auto Trait Implementations§
impl Freeze for Change
impl RefUnwindSafe for Change
impl Send for Change
impl Sync for Change
impl Unpin for Change
impl UnsafeUnpin for Change
impl UnwindSafe for Change
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