heim_process::os::windows

Trait MemoryExt

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

Source

fn page_faults(&self) -> u32

Returns the number of page faults.

Source

fn peak_working_set_size(&self) -> usize

Returns the the peak working set size.

Source

fn working_set_size(&self) -> usize

Returns the current working set size.

Source

fn quota_peak_paged_pool_usage(&self) -> usize

Returns the peak paged pool usage.

Source

fn quota_paged_pool_usage(&self) -> usize

Returns the current paged pool usage.

Source

fn quota_peak_non_paged_pool_usage(&self) -> usize

Returns the peak nonpaged pool usage.

Source

fn quota_non_paged_pool_usage(&self) -> usize

Returns the current nonpaged pool usage.

Source

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.

Source

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

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.

Implementors§