Struct linux_proc::stat::StatCpu
source · pub struct StatCpu {
pub user: u64,
pub nice: u64,
pub system: u64,
pub idle: u64,
pub iowait: u64,
pub irq: u64,
pub softirq: u64,
pub steal: Option<u64>,
pub guest: Option<u64>,
pub guest_nice: Option<u64>,
}
Expand description
Info about the number of units in the various cpu contexts.
units could be anything, for example cpu cycles, or hundredths of a second. The numbers only really make sense as a proportion of the total.
Fields§
§user: u64
§nice: u64
§system: u64
§idle: u64
§iowait: u64
§irq: u64
§softirq: u64
§steal: Option<u64>
§guest: Option<u64>
§guest_nice: Option<u64>
Implementations§
Trait Implementations§
source§impl Ord for StatCpu
impl Ord for StatCpu
source§impl PartialOrd<StatCpu> for StatCpu
impl PartialOrd<StatCpu> for StatCpu
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more