Struct linux_proc::stat::Stat
source · pub struct Stat {
pub cpu_totals: StatCpu,
pub cpus: Vec<StatCpu>,
pub context_switches: u64,
pub boot_time: u64,
pub processes: u64,
pub procs_running: u64,
pub procs_blocked: u64,
}
Expand description
The stats from /proc/stat
.
Fields§
§cpu_totals: StatCpu
Total stats, sum of all cpus.
cpus: Vec<StatCpu>
For each cpu, the number of units spent in different contexts.
context_switches: u64
Number of context switches since the system booted.
boot_time: u64
Timestamp (in seconds since epoch) that system booted.
processes: u64
The total number of processes and threads created since system booted.
procs_running: u64
The total number of processes running on the cpu.
procs_blocked: u64
The total number of processes waiting to run on the cpu.
Implementations§
Trait Implementations§
source§impl Ord for Stat
impl Ord for Stat
source§impl PartialOrd<Stat> for Stat
impl PartialOrd<Stat> for Stat
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