pub struct CpuStats(/* private fields */);
Expand description
CPU statistics.
See OS-specific extensions for more statistics.
Implementations§
Source§impl CpuStats
impl CpuStats
Sourcepub fn ctx_switches(&self) -> u64
pub fn ctx_switches(&self) -> u64
Returns number of context switches (voluntary + involuntary) since system boot.
Sourcepub fn interrupts(&self) -> u64
pub fn interrupts(&self) -> u64
Returns number of interrupts since system boot.
Trait Implementations§
Source§impl CpuStatsExt for CpuStats
impl CpuStatsExt for CpuStats
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