pub struct Allocation {
pub address: Option<u64>,
pub count: u64,
pub size: u64,
pub thread_info: Option<Rc<ThreadInfo>>,
pub stack_trace: Rc<StackTrace>,
pub timestamp: Option<MonotonicInstant>,
pub contents: Option<Vec<u8>>,
}Expand description
Information about one or more allocated memory blocks.
Fields§
§address: Option<u64>§count: u64Number of allocations that have been aggregated into this Allocation instance.
size: u64Total size, in bytes.
thread_info: Option<Rc<ThreadInfo>>Allocating thread.
stack_trace: Rc<StackTrace>Stack trace of the allocation site.
timestamp: Option<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