| Index: tools/telemetry/telemetry/core/platform/linux_platform_backend.py
|
| diff --git a/tools/telemetry/telemetry/core/platform/linux_platform_backend.py b/tools/telemetry/telemetry/core/platform/linux_platform_backend.py
|
| index 42d6e947a84ecaa6944a35572381e9caeef88979..f27ac9c4e2a1be00d1389061ebfc2772dc8c59ed 100644
|
| --- a/tools/telemetry/telemetry/core/platform/linux_platform_backend.py
|
| +++ b/tools/telemetry/telemetry/core/platform/linux_platform_backend.py
|
| @@ -29,6 +29,12 @@ class LinuxPlatformBackend(posix_platform_backend.PosixPlatformBackend):
|
| meminfo_contents = self._GetFileContents('/proc/meminfo')
|
| return proc_util.GetSystemCommitCharge(meminfo_contents)
|
|
|
| + def GetCpuStats(self, pid=None):
|
| + timer_list = self._GetFileContents('/proc/timer_list')
|
| + stats = self._GetFileContents('/proc/%s/stat' % pid).split()
|
| +
|
| + return proc_util.GetCpuStats(timer_list, stats)
|
| +
|
| def GetMemoryStats(self, pid):
|
| status = self._GetFileContents('/proc/%s/status' % pid)
|
| stats = self._GetFileContents('/proc/%s/stat' % pid).split()
|
|
|