pidstat - Report statistics for Linux tasks.
To report statistics for Linux tasks $ pidstat
To display statistics for specific process id $ pidstat -p <pid_number>
To display only tasks whose command name includes the string comm $ pidstat -C apache2 $ pidstat -C mysql
To report I/O statistics $ pidstat -d
To display all activities horizontally on a single line $ pidstat -h
To display the process command name and all its arguments $ pidstat -l
To report page faults and memory usage $ pidstat -r
To display statistics for threads associated with selected tasks $ pidstat -t
To report CPU usage $ pidstat -u
To Report task switching activity $ pidstat -w
regards, T.Dhanasekar