pub struct MemorySummary {
pub count: usize,
pub start: u64,
pub end: u64,
pub min: u64,
pub peak: u64,
pub max_pressure: u8,
pub max_footprint: u64,
}Expand description
Aggregate view of a span’s TurboMalloc memory samples.
Unlike the allocation counters these are absolute live-heap readings, so
peak is the figure to quote for memory actually in use.
Fields§
§count: usizeNumber of samples in the span’s range (after the store’s downsampling).
start: u64Live bytes at the first sample in the range.
end: u64Live bytes at the last sample in the range.
min: u64Smallest live-bytes reading in the range.
peak: u64Largest live-bytes reading in the range — the span’s peak memory.
max_pressure: u8Highest memory-pressure byte seen in the range (0 = no pressure).
max_footprint: u64Largest process memory footprint (RSS) in bytes seen in the range (0 = not reported by the platform).
Trait Implementations§
Source§impl Clone for MemorySummary
impl Clone for MemorySummary
impl Copy for MemorySummary
Source§impl Debug for MemorySummary
impl Debug for MemorySummary
impl Eq for MemorySummary
Source§impl PartialEq for MemorySummary
impl PartialEq for MemorySummary
impl StructuralPartialEq for MemorySummary
Auto Trait Implementations§
impl Freeze for MemorySummary
impl RefUnwindSafe for MemorySummary
impl Send for MemorySummary
impl Sync for MemorySummary
impl Unpin for MemorySummary
impl UnsafeUnpin for MemorySummary
impl UnwindSafe for MemorySummary
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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