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§
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