pub struct CpuTime {
pub user: f64,
pub system: f64,
pub idle: f64,
pub nice: Option<f64>,
pub iowait: Option<f64>,
pub irq: Option<f64>,
pub softirq: Option<f64>,
pub steal: Option<f64>,
pub guest: Option<f64>,
pub guest_nice: Option<f64>,
}
Expand description
Struct to represent CPU times. All values are in seconds.
Fields§
§user: f64
Time spent in user mode.
Linux: also includes guest time.
system: f64
Time spent in system mode.
idle: f64
Time spent in the idle task.
nice: Option<f64>
Time spent in user mode with low priority (nice).
Linux: also includes guest_nice time.
Available: Linux
iowait: Option<f64>
Time spent waiting for I/O to complete.
Available: Linux
irq: Option<f64>
Time spent for servicing hardware interrupts.
Available: Linux
softirq: Option<f64>
Time spent for servicing software interrupts.
Available: Linux
steal: Option<f64>
Time spent by other operating systems running in a virtualized environment.
Available: Linux 2.6.11+
guest: Option<f64>
Time spent running a virtual CPU for guest operating systems under the control of the Linux kernel.
Available: Linux 2.6.24+
guest_nice: Option<f64>
Time spent running a niced guest (virtual CPU for guest operating systems under the control of the Linux kernel).
Available: Linux 3.2.0+