Following from question in comment here, is there any easy way to get CPU usage on a per core basis at a certain interval throughout the day? (e.g. every 60 seconds)
Notes
- happy to use a script (e.g. ruby, python) and run it in the terminal
- would be great if the output were a simple csv, but open to using more sophisticated tools/outputs if they exist and are easy to use
- the ultimate goal is to take to plot a time series of per-core utilisation over the day (or week/month) (that is, a line chart with as many lines as cores)
- In case it's of significance, I will try to run this on a MacBook Pro
Example output:
A csv that resembles:
time, core_1, core_2, core_3, core_4 (etc)
"2020-07-18 15:45:00 UTC", 15%, 12%, 0%, 1%
"2020-07-18 15:46:00 UTC", 100%, 100%, 10%, 3%
"2020-07-18 15:47:00 UTC", 10%, 2%, 0%, 0%
etc etc