htop is an interactive processor viewer for Unix based systems. With the release of version 2.0 it went cross-platform. This tool is great to get a detailed view of which service is taxing the CPU as well as get memory stats.
To install htop on Mac OS Sierra / El Capitan / Yosemite or Mavericks open the terminal and issue the following commands:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
brew install htop-osx
That’s it, htop should be successfully installed on your Mac. To run it, open a terminal window and issue the following:
You should be greeted by CPU / RAM and process stats.