pub struct MemoryDrift {
pub heap_growth_bytes: i64,
pub outside_heap_growth_bytes: i64,
pub window_secs: u64,
pub verdict: DriftVerdict,
}Expand description
Process memory movement since the session settled. Growth is signed: a term that shrank reads negative.
Fields§
§heap_growth_bytes: i64Bytes the tracked heap has moved since the baseline.
outside_heap_growth_bytes: i64Bytes of resident-set movement the tracked heap does not account for.
window_secs: u64Seconds the movement is measured over, so a growth figure has a rate behind it: 400 MB over three hours and over three minutes are different problems.
verdict: DriftVerdictWhich term (if any) is still growing.
Trait Implementations§
Source§impl Clone for MemoryDrift
impl Clone for MemoryDrift
Source§fn clone(&self) -> MemoryDrift
fn clone(&self) -> MemoryDrift
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MemoryDrift
Source§impl Debug for MemoryDrift
impl Debug for MemoryDrift
impl Eq for MemoryDrift
Source§impl PartialEq for MemoryDrift
impl PartialEq for MemoryDrift
impl StructuralPartialEq for MemoryDrift
Auto Trait Implementations§
impl Freeze for MemoryDrift
impl RefUnwindSafe for MemoryDrift
impl Send for MemoryDrift
impl Sync for MemoryDrift
impl Unpin for MemoryDrift
impl UnsafeUnpin for MemoryDrift
impl UnwindSafe for MemoryDrift
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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