pidstat
pidstat is a command-line monitoring utility that is part of the sysstat software package for Linux. It is designed to collect and report statistics about Linux processes and, optionally, their threads. pidstat can report on CPU usage, memory usage, input/output activity, and other per-process metrics, making it useful for performance analysis and troubleshooting.
The tool operates by taking samples over time. It can produce a one-shot report or run in
Output from pidstat typically includes a row per process (and per thread when requested), with fields that
Pidstat relies on the /proc filesystem to gather data and is intended for Linux systems. It is