Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

us85

macrumors newbie
Original poster
Jan 14, 2010
3
0
hi,

i want something similar to Window's Performance Monitor (Perfmon) on MAC. i need logs for the CPU usage of a particular process on MAC OSX. Please let me know if there is an in-built MAC utility or suggest some external application..

Thanks.
 
The (free) Developer tools include Instruments that can attach to any process and record all sorts of things including CPU usage.

screenshot_instruments.png


You can read the in-depth guide here.
 
The (free) Developer tools include Instruments that can attach to any process and record all sorts of things including CPU usage.

screenshot_instruments.png


You can read the in-depth guide here.

thanks robbieduncan but can you please tell me how do i get the logs? i can see the CPU usage in the monitor but i cannot figure out how to log it..
 
Thanks for that, robbieduncan. I had no idea that tool existed. I was going to suggest the Quick and Dirty method of:
  1. Find the process's name or PID, using ps | grep name
  2. Run top, setting options to only display the process you want logged, run it in the background, and redirect the output to a file.
...but your method is SO much easier.
 
hey have you used Instruments? I'm facing a weird problem..i record in Cpu monitor, then try to Export it ..as mentioned in the link provided by rob, but the CSV file does not get generated. Can anyone tell me what are the steps to generate the CSV..i might be missing something..
 
I've used it to monitor iPhone programs but I've never tried to use the export. Perhaps you have to have the specific instrument you want to export selected?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.