我认为top是监控 Linux 系统的绝佳应用程序。我真的很喜欢它,但是top在 Mac 上看起来不太好。我知道 Mac 有一个系统监视器可以做到这一点,但我更喜欢使用终端。
我已经通过运行安装了htop:
brew install htop.
这是它的样子:
PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command
1 0 0 0 0 0 0 ? 0.0 0.0 0:00.00 (launchd)
10 0 0 0 0 0 0 ? 0.0 0.0 0:00.00 (kextd)
11 0 0 0 0 0 0 ? 0.0 0.0 0:00.00 (UserEventAgent)
12 65 0 0 0 0 0 ? 0.0 0.0 0:00.00 (mDNSResponder)
Run Code Online (Sandbox Code Playgroud)
问题是 …