Struct procfs::KernelStats[][src]

pub struct KernelStats {
    pub total: CpuTime,
    pub cpu_time: Vec<CpuTime>,
    pub ctxt: u64,
    pub btime: u64,
    pub processes: u64,
    pub procs_running: Option<u32>,
    pub procs_blocked: Option<u32>,
}
Expand description

Kernel/system statistics, from /proc/stat

Fields

total: CpuTime

The amount of time the system spent in various states

cpu_time: Vec<CpuTime>

The amount of time that specific CPUs spent in various states

ctxt: u64

The number of context switches that the system underwent

btime: u64

Boot time, in number of seconds since the Epoch

processes: u64

Number of forks since boot

procs_running: Option<u32>

Number of processes in runnable state

(Since Linux 2.5.45)

procs_blocked: Option<u32>

Number of processes blocked waiting for I/O

(Since Linux 2.5.45)

Implementations

Get KernelStatus from a custom Read instead of the default /proc/stat.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.