On Linux (and other Unix-like OS's if there's a general answer), is there an easy way to get an output similar to the time
command (current real time, user, and system CPU usage totals) for a process that is still running?
Linux Cumulative User, System CPU Usage of Running Process
cpu-usagelinuxmonitoringtime
Related Topic
- Linux – Monitor and graph CPU usage per process and per thread
- High “System” process cpu usage on windows server 2008 r2
- Windows – CPU Usage while running command in command line
- Linux CPU Usage – Monitoring CPU Usage and Process Execution History
- Monit system cpu usage
- Linux – Get real time CPU usage of linux process with single line command and as a simple result
Best Answer
Yeah, check out
/proc/$PID/stat
, that should have what you need. The fields are defined inman proc
. Can also pull memory usage and fault information, if you care about taht.