Skip to main content

pressure

Function pressure 

Source
pub fn pressure() -> Result<Option<Pressure>>
Expand description

How much runnable work waited for a CPU over the last 10, 60, and 300 seconds (Pressure): the direct form of what the load average approximates. Linux: the cgroup’s cpu.pressure, else /proc/pressure/cpu; None on kernels without pressure-stall information. macOS and Windows have no stall measure: None.

§Errors

Malformed when the kernel’s file does not parse.