pub struct Memory(/* private fields */);
Expand description
Memory information about the process.
See os-specific extensions also.
Implementations§
Source§impl Memory
impl Memory
Sourcepub fn rss(&self) -> Information
pub fn rss(&self) -> Information
Returns resident set size, amount of non-swapped physical memory used by the process.
Sourcepub fn vms(&self) -> Information
pub fn vms(&self) -> Information
Returns virtual memory size, total amount of memory used by the process.
Trait Implementations§
Source§impl MemoryExt for Memory
impl MemoryExt for Memory
Returns the amount of memory that could be potentially shared with other processes.
Source§fn text(&self) -> Information
fn text(&self) -> Information
Returns TRS (text resident set) - the amount of memory devoted to executable code.
Source§fn data(&self) -> Information
fn data(&self) -> Information
Returns DRS (data resident set) - the amount of physical memory
devoted to other than executable code.
Auto Trait Implementations§
impl Freeze for Memory
impl !RefUnwindSafe for Memory
impl Send for Memory
impl Sync for Memory
impl Unpin for Memory
impl !UnwindSafe for Memory
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