pub struct CpuTicks {
pub busy: u64,
pub total: u64,
}Expand description
Cumulative jiffy counts for one cpu line: (busy, total).
total = user+nice+system+idle+iowait+irq+softirq+steal (the first eight fields; guest time is already accounted inside user/nice). busy = total − idle − iowait: iowait is idle-with-an-excuse, and counting it as busy would read an I/O-bound stall as CPU saturation.
Fields§
§busy: u64§total: u64Trait Implementations§
impl Copy for CpuTicks
impl Eq for CpuTicks
impl StructuralPartialEq for CpuTicks
Auto Trait Implementations§
impl Forget for CpuTicks
impl Freeze for CpuTicks
impl Move for CpuTicks
impl RefUnwindSafe for CpuTicks
impl Send for CpuTicks
impl Sync for CpuTicks
impl Unpin for CpuTicks
impl UnsafeUnpin for CpuTicks
impl UnwindSafe for CpuTicks
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