pub struct AllocationInfo {
pub ptr: *mut u8,
pub size: usize,
pub align: usize,
pub timestamp: Instant,
pub thread_id: ThreadId,
pub stack_trace: Option<Vec<usize>>,
}Expand description
One of several same-named AllocationInfo types in this crate: this one is the
a platform allocator snapshot entry, not a tracked allocation.
Convert at the module boundary instead of passing it across; a global rename is deliberately avoided (see DATA_ACCURACY_DEVELOPMENT_PLAN §14.2). Information about an allocation
Fields§
§ptr: *mut u8Pointer to allocated memory
size: usizeSize of allocation
align: usizeAlignment requirement
timestamp: InstantTimestamp of allocation
thread_id: ThreadIdThread ID that made allocation
stack_trace: Option<Vec<usize>>Stack trace if captured
Trait Implementations§
Source§impl Clone for AllocationInfo
impl Clone for AllocationInfo
Auto Trait Implementations§
impl !Send for AllocationInfo
impl !Sync for AllocationInfo
impl Forget for AllocationInfo
impl Freeze for AllocationInfo
impl RefUnwindSafe for AllocationInfo
impl Unpin for AllocationInfo
impl UnsafeUnpin for AllocationInfo
impl UnwindSafe for AllocationInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more