pub struct ProcessMetrics {
pub cpu_user: Duration,
pub cpu_system: Duration,
pub resident_bytes: u64,
pub footprint_bytes: Option<u64>,
pub virtual_bytes: u64,
pub thread_count: Option<u32>,
pub uptime: Duration,
}Expand description
One immutable snapshot of the current process.
Fields§
§cpu_user: DurationAccumulated user-mode CPU time.
cpu_system: DurationAccumulated kernel-mode CPU time.
resident_bytes: u64Resident set size in bytes.
footprint_bytes: Option<u64>macOS phys_footprint: the memory the system charges to this process. None elsewhere.
virtual_bytes: u64Reserved virtual address space in bytes.
thread_count: Option<u32>Live threads, when the platform exposes an inexpensive count.
uptime: DurationTime since the process started.
Implementations§
Trait Implementations§
Source§impl Clone for ProcessMetrics
impl Clone for ProcessMetrics
Source§fn clone(&self) -> ProcessMetrics
fn clone(&self) -> ProcessMetrics
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 ProcessMetrics
Source§impl Debug for ProcessMetrics
impl Debug for ProcessMetrics
Source§impl Default for ProcessMetrics
impl Default for ProcessMetrics
Source§fn default() -> ProcessMetrics
fn default() -> ProcessMetrics
Returns the “default value” for a type. Read more
Source§impl PartialEq for ProcessMetrics
impl PartialEq for ProcessMetrics
impl StructuralPartialEq for ProcessMetrics
Auto Trait Implementations§
impl Freeze for ProcessMetrics
impl RefUnwindSafe for ProcessMetrics
impl Send for ProcessMetrics
impl Sync for ProcessMetrics
impl Unpin for ProcessMetrics
impl UnsafeUnpin for ProcessMetrics
impl UnwindSafe for ProcessMetrics
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