pub struct SystemMetricsSnapshot {
pub threads_created: u64,
pub threads_destroyed: u64,
pub active_threads: u64,
pub total_context_switches: u64,
pub total_cpu_time_ns: u64,
pub cpu_utilization: f64,
pub context_switches_per_second: f64,
pub current_memory_usage: u64,
pub peak_memory_usage: u64,
}
Expand description
Snapshot of system metrics for reporting.
Fields§
§threads_created: u64
§threads_destroyed: u64
§active_threads: u64
§total_context_switches: u64
§total_cpu_time_ns: u64
§cpu_utilization: f64
§context_switches_per_second: f64
§current_memory_usage: u64
§peak_memory_usage: u64
Trait Implementations§
Source§impl Clone for SystemMetricsSnapshot
impl Clone for SystemMetricsSnapshot
Source§fn clone(&self) -> SystemMetricsSnapshot
fn clone(&self) -> SystemMetricsSnapshot
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 SystemMetricsSnapshot
impl RefUnwindSafe for SystemMetricsSnapshot
impl Send for SystemMetricsSnapshot
impl Sync for SystemMetricsSnapshot
impl Unpin for SystemMetricsSnapshot
impl UnwindSafe for SystemMetricsSnapshot
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