process.getCPUUsage


#1

What does the percentCPUUsage value, returned by process.getCPUUsage, represent? The docs state:

Percentage of CPU used since the last call to getCPUUsage. First call returns 0.

But this doesn’t explain things enough… For example:

  • Is this only CPU usage for the electron process or for the system overall (I assume the former since this is part of “process” but who knows.)
  • How does this handled multiple cores? I guess it’s the percentage of total CPU power?
  • Does the value represent the average CPU use since the previous call?

Thanks!