Monitoring CPU Usage on your Mac – a better top command
Following the CPU usage on my Mac is a mild obsession, and I usually use the Mac terminal command ‘top’ to do this but I noticed that top itself takes up a fair amount of CPU usage (5% or more). I made this complaint to a friend of mine and they told me to try this command instead:
top -F -R -o cpu
Type that in the Terminal and you’ll get a more efficient usage of top that uses less CPU itself, thanks to the flags. Here’s an explanation of the flags:
-F Do not calculate statistics on shared libraries, also known as frameworks.
-R Do not traverse and report the memory object map for each process.
-o cpu Order by CPU usage
By using top with those flags I have reduced top CPU usage to 1% and it’s also more appropriate for my needs. Try it out!