Struct re_memory::MemoryHistory
source · pub struct MemoryHistory {
pub resident: History<i64>,
pub counted: History<i64>,
pub counted_gpu: History<i64>,
pub counted_store: History<i64>,
pub counted_primary_caches: History<i64>,
pub counted_blueprint: History<i64>,
}
Expand description
Tracks memory use over time.
Fields§
§resident: History<i64>
Bytes allocated by the application according to operating system.
Resident Set Size (RSS) on Linux, Android, Mac, iOS. Working Set on Windows.
counted: History<i64>
Bytes used by the application according to our own memory allocator’s accounting.
This can be smaller than Self::resident
because our memory allocator may not
return all the memory we free to the OS.
counted_gpu: History<i64>
VRAM bytes used by the application according to its own accounting if a tracker was installed.
Values are usually a rough estimate as the actual amount of VRAM used depends a lot on the specific GPU and driver. Accounted typically only raw buffer & texture sizes.
counted_store: History<i64>
Bytes used by the datastore according to its own accounting.
counted_primary_caches: History<i64>
Bytes used by the primary caches according to their own accounting.
counted_blueprint: History<i64>
Bytes used by the blueprint store according to its own accounting.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MemoryHistory
impl RefUnwindSafe for MemoryHistory
impl Send for MemoryHistory
impl Sync for MemoryHistory
impl Unpin for MemoryHistory
impl UnwindSafe for MemoryHistory
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
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>
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>
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