os.loadavg()


返回一个数组,包含 1、5 和 15 分钟的平均负载。

平均负载是系统活动性的测量,由操作系统计算得出,并表现为一个分数。

平均负载是 UNIX 特定的概念。 在 Windows 上,其返回值始终为 [0, 0, 0]

Returns an array containing the 1, 5, and 15 minute load averages.

The load average is a measure of system activity calculated by the operating system and expressed as a fractional number.

The load average is a Unix-specific concept. On Windows, the return value is always [0, 0, 0].