pub struct ProcCounters {
pub vm_size: MinMax,
pub rss: MinMax,
pub pss: MinMax,
pub shared: MinMax,
pub anon: MinMax,
pub begin_read_bytes: u64,
pub begin_write_bytes: u64,
pub end_read_bytes: u64,
pub end_write_bytes: u64,
}Expand description
Accumulated memory and I/O counters for a process hierarchy over a phase.
Memory fields track min/max over all snapshots in the phase. I/O fields track cumulative byte counts: begin is set at phase start. All metrics are in bytes.
Fields§
§vm_size: MinMaxVirtual memory size.
rss: MinMaxResident set size.
pss: MinMaxProportional set size.
Shared memory, clean + dirty.
anon: MinMaxAnonymous memory.
begin_read_bytes: u64Cumulative bytes read at the beginning of a phase.
begin_write_bytes: u64Cumulative bytes written at the beginning of a phase.
end_read_bytes: u64Highest cumulative bytes read observed during this phase.
end_write_bytes: u64Highest cumulative bytes written observed during this phase.
Implementations§
Source§impl ProcCounters
impl ProcCounters
Trait Implementations§
Source§impl Clone for ProcCounters
impl Clone for ProcCounters
Source§fn clone(&self) -> ProcCounters
fn clone(&self) -> ProcCounters
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProcCounters
Source§impl Debug for ProcCounters
impl Debug for ProcCounters
Source§impl Default for ProcCounters
impl Default for ProcCounters
Source§fn default() -> ProcCounters
fn default() -> ProcCounters
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProcCounters
impl RefUnwindSafe for ProcCounters
impl Send for ProcCounters
impl Sync for ProcCounters
impl Unpin for ProcCounters
impl UnsafeUnpin for ProcCounters
impl UnwindSafe for ProcCounters
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