pub struct CpuStats {
pub current_load: f64,
pub average_load: f64,
pub peak_load: f64,
pub samples_collected: u64,
pub is_throttling: bool,
pub throttle_count: u64,
}Expand description
CPU load statistics.
Fields§
§current_load: f64Current CPU load (0.0 - 1.0)
average_load: f64Average CPU load over sample window
peak_load: f64Peak CPU load observed
samples_collected: u64Number of samples collected
is_throttling: boolWhether throttling is currently active
throttle_count: u64Number of times throttling was triggered
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CpuStats
impl RefUnwindSafe for CpuStats
impl Send for CpuStats
impl Sync for CpuStats
impl Unpin for CpuStats
impl UnwindSafe for CpuStats
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