pub struct AllocationSummary {
pub ptr: usize,
pub size: usize,
pub timestamp_alloc: u64,
pub timestamp_dealloc: Option<u64>,
pub type_name: Option<String>,
pub var_name: Option<String>,
pub is_leaked: bool,
pub lifetime_ms: Option<u64>,
}
Expand description
Lightweight allocation summary for bounded storage
Fields§
§ptr: usize
§size: usize
§timestamp_alloc: u64
§timestamp_dealloc: Option<u64>
§type_name: Option<String>
§var_name: Option<String>
§is_leaked: bool
§lifetime_ms: Option<u64>
Trait Implementations§
Source§impl Clone for AllocationSummary
impl Clone for AllocationSummary
Source§fn clone(&self) -> AllocationSummary
fn clone(&self) -> AllocationSummary
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AllocationSummary
impl Debug for AllocationSummary
Source§impl<'de> Deserialize<'de> for AllocationSummary
impl<'de> Deserialize<'de> for AllocationSummary
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&AllocationInfo> for AllocationSummary
impl From<&AllocationInfo> for AllocationSummary
Source§fn from(alloc: &AllocationInfo) -> Self
fn from(alloc: &AllocationInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AllocationSummary
impl RefUnwindSafe for AllocationSummary
impl Send for AllocationSummary
impl Sync for AllocationSummary
impl Unpin for AllocationSummary
impl UnwindSafe for AllocationSummary
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