pub struct LoadAverage {
pub one: f32,
pub five: f32,
pub fifteen: f32,
pub cur: u32,
pub max: u32,
pub latest_pid: u32,
}
Load average figures.
Load averages are calculated as the number of jobs in the run queue (state R) or waiting for
disk I/O (state D) averaged over 1, 5, and 15 minutes.
The one-minute load average
The five-minute load average
THe fifteen-minute load average
The number of currently runnable kernel scheduling entities (processes, threads).
The number of kernel scheduling entities that currently exist on the system.
The fifth field is the PID of the process that was most recently created on the system.
Reads load average info from /proc/loadavg
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static