LDTP  2.3.1
getcpustat

Syntax

getcpustat(<'process name'>)

Description

Get the current CPU utilization of the given application

Refer: http://cgit.freedesktop.org/ldtp/ldtp/tree/python/ldtputils.py

Return values:
Returnslist of float values in percentage(CPU utilization), of all the instance of given application

Example

from ldtp import *

getcpustat('chromium-browser')

Author:
Nagappan Alagappan <nagappan@gmail.com>