pub trait MemoryExt {
// Required methods
fn page_faults(&self) -> u32;
fn peak_working_set_size(&self) -> usize;
fn working_set_size(&self) -> usize;
fn quota_peak_paged_pool_usage(&self) -> usize;
fn quota_paged_pool_usage(&self) -> usize;
fn quota_peak_non_paged_pool_usage(&self) -> usize;
fn quota_non_paged_pool_usage(&self) -> usize;
fn pagefile_usage(&self) -> usize;
fn peak_pagefile_usage(&self) -> usize;
fn private_usage(&self) -> usize;
}
Expand description
Windows-specific extension to process Memory information.
Information here is provided by the PROCESS_MEMORY_COUNTERS_EX struct, see its documentation for details.
Required Methods§
Sourcefn page_faults(&self) -> u32
fn page_faults(&self) -> u32
Returns the number of page faults.
Sourcefn peak_working_set_size(&self) -> usize
fn peak_working_set_size(&self) -> usize
Returns the the peak working set size.
Sourcefn working_set_size(&self) -> usize
fn working_set_size(&self) -> usize
Returns the current working set size.
Sourcefn quota_peak_paged_pool_usage(&self) -> usize
fn quota_peak_paged_pool_usage(&self) -> usize
Returns the peak paged pool usage.
Sourcefn quota_paged_pool_usage(&self) -> usize
fn quota_paged_pool_usage(&self) -> usize
Returns the current paged pool usage.
Sourcefn quota_peak_non_paged_pool_usage(&self) -> usize
fn quota_peak_non_paged_pool_usage(&self) -> usize
Returns the peak nonpaged pool usage.
Sourcefn quota_non_paged_pool_usage(&self) -> usize
fn quota_non_paged_pool_usage(&self) -> usize
Returns the current nonpaged pool usage.
Sourcefn pagefile_usage(&self) -> usize
fn pagefile_usage(&self) -> usize
Returns the Commit Charge value in bytes.
Commit Charge is the total amount of memory that the memory manager has committed for a running process.
Sourcefn 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.
Sourcefn private_usage(&self) -> usize
fn private_usage(&self) -> usize
Same as pagefile_usage
.
The Commit Charge value in bytes for this process. Commit Charge is the total amount of memory that the memory manager has committed for a running process.