How can I log my Macs system activity the whole day (on OS X Mavericks)? E.g. memory and CPU usage?


I tried OsTrack, but it crashes all the time.

  • Are you looking for software recommendations or help creating a script+launchd job to gather this information? – Graham Miln Jan 14 '14 at 14:18
  • If there is any possibility to log the activity without third party software, a script would be the best solution. But I never used AppleScript before, so I would need the whole script or a software recommendation. – Slevin Jan 14 '14 at 16:35

The average energy impact column in Activity Monitor shows the average energy (or CPU) use for the last 8 hours:

If you have downloaded Xcode, you might use the Activity Monitor template in Instruments:

With top, you can use -a for accumulative display. -o cpu orders processes by CPU use:

top -a -o cpu

To track the average CPU use of processes, run EDITOR=nano crontab -e and add a line like this:

* * * * * ps -eco '\%cpu= comm='|sed $'s/^ *//;s/ /\t/'>>~/Documents/cpu

Then run awk -F$'\t' '{a[$2]+=$1}END{for(i in a)print a[i],i}' ~/Documents/cpu|sort -rn later.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .