I am running a process and I want to track it's CPU usage and in the end I would like to have a graph of time vs CPU usage. Any app or script for that? I googled and I couldn't find any. And activity monitor does not give graph of over the time of the process.
MacOS – Any app or script to track per process usage
activity-monitormacosprocessor
Related Question
- MacOS – Viewing the HDD activity of active processes
- MacOS – Make Activity Monitor show more than 4 cores worth of CPU usage in the Dock
- MacOS – Kill processes automatically that get over x % CPU
- MacOS – How to see total memory usage per app
- MacOS – Yosemite Activity Monitor: ‘% CPU’ column blank for certain processes (clang compiler)
- MacOS – High CPU usage by a process called PTPCamera
- MacOS – What’s this process ‘collision’
- macOS CPU Usage – How to Fix maspushagent Using High CPU
Best Answer
You could also use a shell command like this:
Replace 1234 with the pid of the process.
You can use gnuplot to create a graph for the data: