pub struct ProcessMemory {
pub resident_bytes: Option<u64>,
pub peak_resident_bytes: Option<u64>,
pub footprint_bytes: Option<u64>,
pub peak_footprint_bytes: Option<u64>,
}Expand description
The process’s memory, as the operating system counts it.
Resident memory includes shared pages. The footprint is what memory limits and the OOM killer
use: RssAnon + RssShmem on Linux (peak from VmHWM, which also counts file pages),
ri_phys_footprint on macOS, PrivateUsage on Windows (peak PeakPagefileUsage).
Fields§
§resident_bytes: Option<u64>Resident bytes now (the working set on Windows).
peak_resident_bytes: Option<u64>Peak resident bytes so far.
footprint_bytes: Option<u64>Footprint bytes now.
peak_footprint_bytes: Option<u64>Peak footprint bytes so far.
Trait Implementations§
Source§impl Clone for ProcessMemory
impl Clone for ProcessMemory
impl Copy for ProcessMemory
Source§impl Debug for ProcessMemory
impl Debug for ProcessMemory
Source§impl Default for ProcessMemory
impl Default for ProcessMemory
impl Eq for ProcessMemory
Source§impl PartialEq for ProcessMemory
impl PartialEq for ProcessMemory
impl StructuralPartialEq for ProcessMemory
Auto Trait Implementations§
impl Freeze for ProcessMemory
impl RefUnwindSafe for ProcessMemory
impl Send for ProcessMemory
impl Sync for ProcessMemory
impl Unpin for ProcessMemory
impl UnsafeUnpin for ProcessMemory
impl UnwindSafe for ProcessMemory
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