pub struct MemoryCounter {
    pub page_fault_count: u32,
    pub peak_working_set_size: usize,
    pub working_set_size: usize,
    pub quota_peak_paged_pool_usage: usize,
    pub quota_paged_pool_usage: usize,
    pub quota_peak_non_paged_pool_usage: usize,
    pub quota_non_paged_pool_usage: usize,
    pub pagefile_usage: usize,
    pub peak_pagefile_usage: usize,
}
Expand description

process’s memory counter struct . can easily get memory infomation of a process.

Fields

page_fault_count: u32peak_working_set_size: usizeworking_set_size: usizequota_peak_paged_pool_usage: usizequota_paged_pool_usage: usizequota_peak_non_paged_pool_usage: usizequota_non_paged_pool_usage: usizepagefile_usage: usizepeak_pagefile_usage: usize

Implementations

get the process’s page fault count

get the process’s peak working set size

get the process’s quota peak paged pool usage

get the process’s quota paged pool usage

get the process’s quota peak non paged pool usage

get the process’s quota non paged pool usage

get the process’s pagefile usage

get the process’s pagefile usage

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.