4 Sep
2019
4 Sep
'19
20:19
On 09/04/2019 03:38 AM, Carlos E. R. wrote:
Hi,
Can I find the percent of cpu load for a process inside a script?
At worst, I can find it out from "top", but I wonder if there is a more direct way.
I'm looking at "/proc/21500/stat" or "/proc/21500/statm", but I have no idea what each value is, where are those virtual files documented.
How do I get the total CPU usage of an application from /proc/pid/stat? https://stackoverflow.com/questions/16726779/how-do-i-get-the-total-cpu-usag... -- David C. Rankin, J.D.,P.E.