cpustat
是一个用于测量 CPU 利用率的工具,它能够定期转储正在运行的进程的当前 CPU 利用率统计信息。与 top
命令相比,cpustat
通常使用更少的 CPU 资源,大约为 35%。以下是 cpustat
的一些主要功能:
在 Debian/Ubuntu 系统中,可以通过以下命令安装 sysstat
包,它包含了 cpustat
:
sudo apt update
sudo apt install sysstat
cpustat
cpustat -P 0
cpustat -cpuprofile cpuprof.txt
以上就是关于 Debian 中 cpustat
的功能介绍,希望对您有所帮助。