sysstatの最新版である8.0にはpidstatというプロセスの統計を取得するコマンドが含まれるようになった。 とりあえず./configure && makeして使ってみる。 user@debian:~/sysstat-8.0.4.1$ ./configure && make user@debian:~/sysstat-8.0.4.1$ ./pidstat --help Usage: ./pidstat [ options... ] [ <interval> [ <count> ] ] Options are: [ -C ] [ -d ] [ -I ] [ -r ] [ -t ] [ -u ] [ -V ] [ -w ] [ -p { | SELF | ALL } ] [ -T { TASK | CHILD | ALL } ] user@debian:~/sysstat-8.0.4.
![pidstatでプロセス毎のCPU使用率を測定](https://cdn-ak-scissors.b.st-hatena.com/image/square/8d71ff5111e05619a10d29bb40d7aebaa75c8fbc/height=288;version=1;width=512/https%3A%2F%2Fs0.wp.com%2Fi%2Fblank.jpg)