Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interpreting the cpu data from the process plugin #160

Open
npomfret opened this issue Jan 4, 2021 · 0 comments
Open

interpreting the cpu data from the process plugin #160

npomfret opened this issue Jan 4, 2021 · 0 comments

Comments

@npomfret
Copy link

npomfret commented Jan 4, 2021

@MrRio was hoping you could advise me on using this package as a lib rather than a gui. I wan't to periodically log some CPU stats, which is fairly easy to do (thanks!). I'm just trying to understand the output a little. Here's an example of some:

{
  Command: 'Google Chrome Helper (Renderer)',
  Count: 18,
  'CPU %': '0.8',
  'Memory %': '7.3',
  cpu: 4.5,
  mem: 7.3
}
{
  Command: 'com.apple.WebKit.WebContent',
  Count: 41,
  'CPU %': '3.7',
  'Memory %': '26.9',
  cpu: 22.100000000000005,
  mem: 26.900000000000002
}
{
  Command: 'node',
  Count: 6,
  'CPU %': '1.2',
  'Memory %': '1.6',
  cpu: 7,
  mem: 1.6
}
{
  Command: 'webstorm',
  Count: 1,
  'CPU %': '0.9',
  'Memory %': '8.5',
  cpu: '5.6',
  mem: '8.5'
}

My question is, what's the difference between CPU % and cpu?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant