pub struct ProcessMemoryInfo {
pub resident_set_size: u64,
pub virtual_memory_size: u64,
}
Expand description
Process Memory Info returned by get_process_memory_info
Fields§
§resident_set_size: u64
this is the non-swapped physical memory a process has used.
On UNIX it matches top
’s RES column.
On Windows this is an alias for wset field and it matches “Mem Usage” column of taskmgr.exe.
virtual_memory_size: u64
this is the total amount of virtual memory used by the process.
On UNIX it matches top
’s VIRT column.
On Windows this is an alias for pagefile field and it matches “Mem Usage” “VM Size” column of taskmgr.exe.
Trait Implementations§
Source§impl Clone for ProcessMemoryInfo
impl Clone for ProcessMemoryInfo
Source§fn clone(&self) -> ProcessMemoryInfo
fn clone(&self) -> ProcessMemoryInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for ProcessMemoryInfo
impl Default for ProcessMemoryInfo
Source§fn default() -> ProcessMemoryInfo
fn default() -> ProcessMemoryInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProcessMemoryInfo
impl RefUnwindSafe for ProcessMemoryInfo
impl Send for ProcessMemoryInfo
impl Sync for ProcessMemoryInfo
impl Unpin for ProcessMemoryInfo
impl UnwindSafe for ProcessMemoryInfo
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