pub struct CpuBreakdown {
pub user: Percent,
pub system: Percent,
pub nice: Percent,
pub idle: Percent,
pub iowait: MetricState<Percent>,
pub irq: MetricState<Percent>,
pub softirq: MetricState<Percent>,
pub steal: MetricState<Percent>,
}Expand description
The per-state split of CPU time.
macOS exposes only user, system, nice, and idle; the Linux-only
fields are MetricState::Unsupported there rather than zero (§4).
Fields§
§user: PercentTime in user mode.
system: PercentTime in kernel mode.
nice: PercentTime in low-priority user mode.
idle: PercentIdle time.
iowait: MetricState<Percent>Time waiting on I/O. Linux only.
irq: MetricState<Percent>Time servicing hardware interrupts. Linux only.
softirq: MetricState<Percent>Time servicing soft interrupts. Linux only.
steal: MetricState<Percent>Time stolen by the hypervisor. Linux only, and the most useful signal that a VM is oversubscribed.
Trait Implementations§
Source§impl Clone for CpuBreakdown
impl Clone for CpuBreakdown
Source§fn clone(&self) -> CpuBreakdown
fn clone(&self) -> CpuBreakdown
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 CpuBreakdown
Source§impl Debug for CpuBreakdown
impl Debug for CpuBreakdown
Source§impl PartialEq for CpuBreakdown
impl PartialEq for CpuBreakdown
impl StructuralPartialEq for CpuBreakdown
Auto Trait Implementations§
impl Freeze for CpuBreakdown
impl RefUnwindSafe for CpuBreakdown
impl Send for CpuBreakdown
impl Sync for CpuBreakdown
impl Unpin for CpuBreakdown
impl UnsafeUnpin for CpuBreakdown
impl UnwindSafe for CpuBreakdown
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