[][src]Struct procfs::KernelStats

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>,
}

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)

Methods

impl KernelStats[src]

Trait Implementations

impl Debug for KernelStats[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.