LDTP
3.5.0
|
To monitor the CPU and memory utilization you can use these functions
NOTE: You need to have libstatgrab >= 0.16 and python-statgrab >= 0.5 installed to use any of these APIs
startprocessmonitor - Start monitoring CPU / Memory utilization
stopprocessmonitor - Stop monitoring CPU / Memory utilization
getcpustat - Get CPU utilization of the given process
getmemorystat - Get Memory utilization of the given process