Expand description
The host’s CPU, memory, load, and uptime, read from the system itself
(/proc on Linux, the kernel’s own calls on macOS): no program is
started for a sample.
CPU time is cumulative since boot, in the system’s own ticks, so a
caller works out a share from two readings (cpu_shares).
Structs§
Functions§
- cpu_
shares - The share of time each core was busy between two readings (0 to 1), and the share over all of them. A core with no ticks between the two counts as idle; readings with different core counts give nothing.
- read
- Read the host now.
Nonewhere this system is not supported, or a source could not be read.