pub struct Allocation {
pub size: u64,
pub thread_info: Rc<ThreadInfo>,
pub stack_trace: Rc<StackTrace>,
pub timestamp: MonotonicInstant,
pub contents: Option<Vec<u8>>,
}
Expand description
Information about an allocated memory block and, optionally, its contents.
Fields§
§size: u64
Block size, in bytes.
thread_info: Rc<ThreadInfo>
The allocating thread.
stack_trace: Rc<StackTrace>
The stack trace of the allocation site.
timestamp: MonotonicInstant
Allocation timestamp, in nanoseconds.
contents: Option<Vec<u8>>
Memory dump of this block’s contents.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Allocation
impl RefUnwindSafe for Allocation
impl !Send for Allocation
impl !Sync for Allocation
impl Unpin for Allocation
impl UnwindSafe for Allocation
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