pub struct ProcessSummary {
pub total_processes: usize,
pub total_cpu_percent: f32,
pub total_mem_percent: f32,
pub top_cpu_consumer: Option<String>,
pub top_mem_consumer: Option<String>,
pub zombie_count: usize,
}Expand description
Aggregated summary of a process snapshot.
Fields§
§total_processes: usizeTotal number of processes.
total_cpu_percent: f32Sum of all process CPU percentages.
total_mem_percent: f32Sum of all process memory percentages.
top_cpu_consumer: Option<String>Command name of the top CPU consumer.
top_mem_consumer: Option<String>Command name of the top memory consumer.
zombie_count: usizeNumber of zombie (Z state) processes.
Trait Implementations§
Source§impl Clone for ProcessSummary
impl Clone for ProcessSummary
Source§fn clone(&self) -> ProcessSummary
fn clone(&self) -> ProcessSummary
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 ProcessSummary
impl Debug for ProcessSummary
Source§impl<'de> Deserialize<'de> for ProcessSummary
impl<'de> Deserialize<'de> for ProcessSummary
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProcessSummary
impl RefUnwindSafe for ProcessSummary
impl Send for ProcessSummary
impl Sync for ProcessSummary
impl Unpin for ProcessSummary
impl UnsafeUnpin for ProcessSummary
impl UnwindSafe for ProcessSummary
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