pub struct ProcessStats {
pub pid: i32,
pub vsize: u64,
pub rss: u64,
pub memory_usage_mb: u64,
pub cpu_time_ms: u64,
pub num_threads: u32,
pub state: ProcessState,
pub timestamp: Instant,
}Expand description
Process statistics snapshot
Fields§
§pid: i32Process ID
vsize: u64Virtual memory size in bytes
rss: u64Resident set size in bytes (physical memory)
memory_usage_mb: u64RSS in MB (for convenience)
cpu_time_ms: u64CPU time in milliseconds
num_threads: u32Number of threads
state: ProcessStateCurrent process state
timestamp: InstantTimestamp of this snapshot
Trait Implementations§
Source§impl Clone for ProcessStats
impl Clone for ProcessStats
Source§fn clone(&self) -> ProcessStats
fn clone(&self) -> ProcessStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProcessStats
impl RefUnwindSafe for ProcessStats
impl Send for ProcessStats
impl Sync for ProcessStats
impl Unpin for ProcessStats
impl UnwindSafe for ProcessStats
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