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 for Stat
impl PartialOrd for Stat
impl Eq for Stat
impl StructuralPartialEq for Stat
Auto Trait Implementations§
impl Freeze for Stat
impl RefUnwindSafe for Stat
impl Send for Stat
impl Sync for Stat
impl Unpin for Stat
impl UnwindSafe for Stat
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