LDTP
3.5.0
|
getcpustat(<'process name'>)
Get the current CPU utilization of the given application
Refer: Linux: http://cgit.freedesktop.org/ldtp/ldtp2/tree/ldtpd/utils.py
Mac: https://github.com/ldtp/pyatom/blob/master/atomac/ldtpd/utils.py
Windows: https://github.com/ldtp/cobra/blob/master/Ldtpd/ProcessStats.cs
Returns | list of float values in percentage(CPU utilization), of all the instance of given application |
from ldtp import *
getcpustat('chromium-browser')