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

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

Issue 11576050: [Telemetry] Add memory and IO stats to page cycler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address dtu nits Created 7 years, 10 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
Index: tools/telemetry/telemetry/core/chrome/platform.py
diff --git a/tools/telemetry/telemetry/core/chrome/platform.py b/tools/telemetry/telemetry/core/chrome/platform.py
index a528b2f8bd1b25d84ec32683a8d299d682190f3f..d7bb31359781fb0c3a9f61a1611f7e1cf262b430 100644
--- a/tools/telemetry/telemetry/core/chrome/platform.py
+++ b/tools/telemetry/telemetry/core/chrome/platform.py
@@ -50,29 +50,3 @@ class Platform(object):
def HasBeenThermallyThrottled(self):
"""Returns True if the device has been thermally throttled."""
return self._platform_backend.HasBeenThermallyThrottled()
-
-
-def EmptyPlatform():
- class EmptyPlatformBackend(object):
- def IsRawDisplayFrameRateSupported(self):
- return False
-
- def StartRawDisplayFrameRateMeasurement(self, _):
- return NotImplementedError()
-
- def StopRawDisplayFrameRateMeasurement(self):
- return NotImplementedError()
-
- def SetFullPerformanceModeEnabled(self, enabled):
- pass
-
- def CanMonitorThermalThrottling(self):
- return False
-
- def IsThermallyThrottled(self):
- return NotImplementedError()
-
- def HasBeenThermallyThrottled(self):
- return NotImplementedError()
-
- return Platform(EmptyPlatformBackend())

Powered by Google App Engine
This is Rietveld 408576698