Uptime, memory and CPUs can be retrieved on any OS using
os.uptime()
,
process.uptime()
,
os.freemem()
,
os.totalmem()
,
process.memoryUsage()
,
os.cpus()
,
os.availableParallelism()
,
navigator.hardwareConcurrency
,
process.cpuUsage()
.
and
process.resourceUsage()
.
However the following fields are 0
on Windows:
os.cpus()
'stimes.nice
os.loadavg()
process.resourceUsage()
'svoluntaryContextSwitches
andinvoluntaryContextSwitches
systeminformation
can
be used for more information.