<mohammadrony>

pidstat

pidstat
pidstat -p ALL

Start program and monitor

pidstat -e <program> <args>

Task threads status

pidstat -t

Process status

pidstat -p <pid>
pidstat -C <command>

Display multiple report

pidstat -p <pid> <interval> <count>

Monitor command process and its threads

pidstat -t -C <command> <interval> <count>