pub struct ProcessStats {
pub pid: u32,
pub memory: u64,
pub virtual_memory: u64,
pub cpu_usage: f32,
pub accumulated_cpu_time: u64,
pub run_time: u64,
pub start_time: u64,
pub read_bytes: u64,
pub total_read_bytes: u64,
pub written_bytes: u64,
pub total_written_bytes: u64,
}Expand description
Current process resource statistics.
Fields§
§pid: u32Process identifier.
memory: u64Resident memory usage in bytes.
virtual_memory: u64Virtual memory usage in bytes.
cpu_usage: f32CPU usage percentage reported by sysinfo.
accumulated_cpu_time: u64Accumulated CPU time in milliseconds.
run_time: u64Process runtime in seconds.
start_time: u64Process start time in seconds since epoch.
read_bytes: u64Bytes read since the previous refresh.
total_read_bytes: u64Total bytes read.
written_bytes: u64Bytes written since the previous refresh.
total_written_bytes: u64Total bytes written.
Implementations§
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcessStats
impl Debug for ProcessStats
Source§impl Default for ProcessStats
impl Default for ProcessStats
Source§fn default() -> ProcessStats
fn default() -> ProcessStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProcessStats
impl RefUnwindSafe for ProcessStats
impl Send for ProcessStats
impl Sync for ProcessStats
impl Unpin for ProcessStats
impl UnsafeUnpin 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