title: Mac OS X shell utility that shows individual cpu usage in multi-core systems
body: <p>I've been looking for a osx utility that shows cpu usage for each cpu. For example
   CPU 0 - 10%
   CPU 1 -  2%
   ...</p>
  
  <p>I know of many ways of getting this information in other Unix-like system (/proc, mpstat, etc) but none work in osx. The most useful one for Mac is top but it only shows total cpu usage. I need the application to be run from the shell so that I can log the usage over time. I also tried cpuwalk.d but it only shows you if the application is running in one or more cores.</p>
  
  <p>If you take a look at Activity Monitor app you will notice that it basically displays the same info as top, but with the addition of a graph that shows cpus load.</p>
  
  <p>If anyone has any idea of how to get the information I would appreciate it. Thanks.</p>