pub struct ProcessMemory {
pub resident_bytes: Option<u64>,
pub peak_resident_bytes: Option<u64>,
}Expand description
The process’s resident memory, as the operating system counts it.
Fields§
§resident_bytes: Option<u64>Bytes resident now: VmRSS on Linux, the task’s resident size on
macOS, the working set on Windows.
peak_resident_bytes: Option<u64>The most bytes resident at once so far: VmHWM on Linux,
ru_maxrss on macOS, the peak working set on Windows.
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