Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Unified Diff: tools/telemetry/telemetry/core/platform/cros_platform_backend.py

Issue 17591003: Returns empty dict for GetIOStats on CrOS platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: try again Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/telemetry/docs/telemetry.core.platform.cros_platform_backend.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/platform/cros_platform_backend.py
diff --git a/tools/telemetry/telemetry/core/platform/cros_platform_backend.py b/tools/telemetry/telemetry/core/platform/cros_platform_backend.py
index 147517220e8abacec9aa271726e4b0748fbc2ac2..68ecc34a4ad816f469dbd3112603b7cdd5bf7869 100644
--- a/tools/telemetry/telemetry/core/platform/cros_platform_backend.py
+++ b/tools/telemetry/telemetry/core/platform/cros_platform_backend.py
@@ -35,5 +35,10 @@ class CrosPlatformBackend(linux_platform_backend.LinuxPlatformBackend):
except AssertionError:
return ''
+ def GetIOStats(self, pid):
+ # There is no '/proc/<pid>/io' file on CrOS platforms
+ # Returns empty dict as it does in PlatformBackend.
+ return {}
+
def GetOSName(self):
return 'chromeos'
« no previous file with comments | « tools/telemetry/docs/telemetry.core.platform.cros_platform_backend.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698