Struct rupta::util::mem_watcher::Statm
source · pub struct Statm {
pub size: usize,
pub resident: usize,
pub share: usize,
pub text: usize,
pub data: usize,
}Expand description
Memory usage information prcessed from /proc/[pid]/statm.
All values are in units of pages.
See man 5 proc and Linux/fs/proc/array.c.
Fields§
§size: usizeTotal virtual memory size.
resident: usizeResident non-swapped memory.
Shared memory.
text: usizeResident executable memory.
data: usizeResident data and stack memory.
Trait Implementations§
source§impl PartialEq for Statm
impl PartialEq for Statm
impl Eq for Statm
impl StructuralPartialEq for Statm
Auto Trait Implementations§
impl RefUnwindSafe for Statm
impl Send for Statm
impl Sync for Statm
impl Unpin for Statm
impl UnwindSafe for Statm
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<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.