Is there a command I can use from the Terminal on OS X to get the usage percentage per CPU/core in numerical format on my dual-core iMac?
I'm going to need to grab this every 5/10 seconds so I'm looking for something "low-cost" - that isn't going to hit the CPU too hard. Maybe something like
top, but which shows both CPU/cores, that I can parse and then display in GeekTool;
Core 1: 11% Core 2: 7%