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
Source§fn page_faults(&self) -> u32
fn page_faults(&self) -> u32
Returns the number of page faults.
Source§fn peak_working_set_size(&self) -> usize
fn peak_working_set_size(&self) -> usize
Returns the the peak working set size.
Source§fn working_set_size(&self) -> usize
fn working_set_size(&self) -> usize
Returns the current working set size.
Source§fn quota_peak_paged_pool_usage(&self) -> usize
fn quota_peak_paged_pool_usage(&self) -> usize
Returns the peak paged pool usage.
Source§fn quota_paged_pool_usage(&self) -> usize
fn quota_paged_pool_usage(&self) -> usize
Returns the current paged pool usage.
Source§fn quota_peak_non_paged_pool_usage(&self) -> usize
fn quota_peak_non_paged_pool_usage(&self) -> usize
Returns the peak nonpaged pool usage.
Source§fn quota_non_paged_pool_usage(&self) -> usize
fn quota_non_paged_pool_usage(&self) -> usize
Returns the current nonpaged pool usage.
Source§fn pagefile_usage(&self) -> usize
fn pagefile_usage(&self) -> usize
Returns the Commit Charge value in bytes. Read more
Source§fn peak_pagefile_usage(&self) -> usize
fn peak_pagefile_usage(&self) -> usize
Returns the peak value in bytes of the Commit Charge
during the lifetime of this process.
Source§fn private_usage(&self) -> usize
fn private_usage(&self) -> usize
Same as
pagefile_usage
. Read moreAuto 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