Deno.loadavg

UNSTABLE: New API, yet to be vetted.

Returns an array containing the 1, 5, and 15 minute load averages. The load average is a measure of CPU and IO utilization of the last one, five, and 15 minute periods expressed as a fractional number. Zero means there is no load. On Windows, the three values are always the same and represent the current load, not the 1, 5 and 15 minute load averages.

console.log(Deno.loadavg());  // e.g. [ 0.71, 0.44, 0.44 ]

Requires allow-sys permission. There are questions around which permission this needs. And maybe should be renamed (loadAverage?).

function loadavg(): number[];
§
loadavg(): number[]
[src]

§Return Type

§
number[]
[src]