pub struct ProcessMemory {
pub footprint: u64,
pub resident: u64,
pub peak: Option<u64>,
}Expand description
Memory of this process, in bytes.
Fields§
§footprint: u64What the system charges the process for: macOS phys_footprint, Linux private resident +
swap (RssAnon + VmSwap), Windows private commit (PrivateUsage).
resident: u64Pages resident in RAM right now, shared ones included (RSS / working set).
peak: Option<u64>The highest footprint since the process started, where the OS keeps it: macOS
ri_lifetime_max_phys_footprint, Windows peak private commit (PeakPagefileUsage).
None on Linux, which keeps no peak of the same measure.
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
Source§impl Serialize for ProcessMemory
impl Serialize for ProcessMemory
impl StructuralPartialEq for ProcessMemory
Auto Trait Implementations§
impl Forget for ProcessMemory
impl Freeze for ProcessMemory
impl Move 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