pub struct ProcessUsage {
pub user_cpu_micros: u64,
pub system_cpu_micros: u64,
pub peak_rss_bytes: Option<u64>,
pub major_faults: u64,
pub voluntary_context_switches: Option<u64>,
pub involuntary_context_switches: Option<u64>,
}Expand description
What a process used, with the children it reaped: its parent’s view at its exit (rusage).
Fields§
§user_cpu_micros: u64CPU time in user mode, in microseconds.
system_cpu_micros: u64CPU time in the kernel, in microseconds.
peak_rss_bytes: Option<u64>The peak resident set size, in bytes. For a forked process it includes the pages it
shares with the fork server (the watchdog’s PSS doesn’t); None for a spawned process
(its memory is gone before the agent reads its zombie).
major_faults: u64Page faults that needed I/O.
voluntary_context_switches: Option<u64>Times it gave up the CPU (waiting for I/O or a lock), with its threads and reaped
children; None for a spawned process (its zombie’s /proc has the leader thread’s
only).
involuntary_context_switches: Option<u64>Times it was preempted; None as for voluntary_context_switches.
Trait Implementations§
Source§impl Clone for ProcessUsage
impl Clone for ProcessUsage
Source§fn clone(&self) -> ProcessUsage
fn clone(&self) -> ProcessUsage
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 ProcessUsage
Source§impl Debug for ProcessUsage
impl Debug for ProcessUsage
Source§impl<'de> Deserialize<'de> for ProcessUsage
impl<'de> Deserialize<'de> for ProcessUsage
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
impl Eq for ProcessUsage
Source§impl JsonSchema for ProcessUsage
impl JsonSchema for ProcessUsage
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ProcessUsage
impl PartialEq for ProcessUsage
Source§impl Serialize for ProcessUsage
impl Serialize for ProcessUsage
impl StructuralPartialEq for ProcessUsage
Auto Trait Implementations§
impl Freeze for ProcessUsage
impl RefUnwindSafe for ProcessUsage
impl Send for ProcessUsage
impl Sync for ProcessUsage
impl Unpin for ProcessUsage
impl UnsafeUnpin for ProcessUsage
impl UnwindSafe for ProcessUsage
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