pub struct MemoryStat {Show 26 fields
pub usage: u64,
pub working_set: u64,
pub anon: u64,
pub inactive_anon: u64,
pub active_anon: u64,
pub file: u64,
pub file_mapped: u64,
pub active_file: u64,
pub inactive_file: u64,
pub shmem: u64,
pub kernel: u64,
pub kernel_stack: u64,
pub pagetables: u64,
pub percpu: u64,
pub sock: u64,
pub slab: u64,
pub slab_reclaimable: u64,
pub slab_unreclaimable: u64,
pub pgfault: u64,
pub pgmajfault: u64,
pub workingset_refault_anon: u64,
pub workingset_refault_file: u64,
pub workingset_activate_anon: u64,
pub workingset_activate_file: u64,
pub workingset_restore_anon: u64,
pub workingset_restore_file: u64,
}Expand description
A few interesting values from memory.stat
Fields§
§usage: u64§working_set: u64§anon: u64Anonymous memory, inclusive of swap.
inactive_anon: u64§active_anon: u64§file: u64File-backed memory.
file_mapped: u64§active_file: u64§inactive_file: u64§shmem: u64§kernel: u64Kernel memory.
kernel_stack: u64§pagetables: u64§percpu: u64§sock: u64§slab: u64§slab_reclaimable: u64§slab_unreclaimable: u64§pgfault: u64§pgmajfault: u64§workingset_refault_anon: u64§workingset_refault_file: u64§workingset_activate_anon: u64§workingset_activate_file: u64§workingset_restore_anon: u64§workingset_restore_file: u64Trait Implementations§
Source§impl Clone for MemoryStat
impl Clone for MemoryStat
Source§fn clone(&self) -> MemoryStat
fn clone(&self) -> MemoryStat
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 moreSource§impl Debug for MemoryStat
impl Debug for MemoryStat
Source§impl Default for MemoryStat
impl Default for MemoryStat
Source§fn default() -> MemoryStat
fn default() -> MemoryStat
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MemoryStat
impl RefUnwindSafe for MemoryStat
impl Send for MemoryStat
impl Sync for MemoryStat
impl Unpin for MemoryStat
impl UnsafeUnpin for MemoryStat
impl UnwindSafe for MemoryStat
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