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

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

Issue 414253004: Introduce TracingController and TracingControllerBackend skeleton (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ready_to_land Created 6 years, 4 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/platform/__init__.py
diff --git a/tools/telemetry/telemetry/core/platform/__init__.py b/tools/telemetry/telemetry/core/platform/__init__.py
index a13cbc279de200ee51938e94b511a4c68f231888..7cc35a650405c17130c70f2d864fcfe33c268adc 100644
--- a/tools/telemetry/telemetry/core/platform/__init__.py
+++ b/tools/telemetry/telemetry/core/platform/__init__.py
@@ -4,6 +4,8 @@
import sys
+from telemetry.core.platform import tracing_controller
+
_host_platform = None
@@ -43,6 +45,12 @@ class Platform(object):
def __init__(self, platform_backend):
self._platform_backend = platform_backend
self._platform_backend.SetPlatform(self)
+ self._tracing_controller = tracing_controller.TracingController(
+ self._platform_backend.tracing_controller_backend)
+
+ @property
+ def tracing_controller(self):
+ return self._tracing_controller
def IsRawDisplayFrameRateSupported(self):
"""Platforms may be able to collect GL surface stats."""
@@ -78,16 +86,6 @@ class Platform(object):
"""Returns a list of RawDisplayFrameRateMeasurement."""
return self._platform_backend.GetRawDisplayFrameRateMeasurements()
- def SetFullPerformanceModeEnabled(self, enabled):
- """Platforms may tweak their CPU governor, system status, etc.
-
- Most platforms can operate in a battery saving mode. While good for battery
- life, this can cause confusing performance results and add noise. Turning
- full performance mode on disables these features, which is useful for
- performance testing.
- """
- return self._platform_backend.SetFullPerformanceModeEnabled(enabled)
-
def CanMonitorThermalThrottling(self):
"""Platforms may be able to detect thermal throttling.
« no previous file with comments | « tools/telemetry/telemetry/core/browser.py ('k') | tools/telemetry/telemetry/core/platform/platform_backend.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698