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

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

Issue 511653002: Add profiling_controller that manages profilers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 7cc35a650405c17130c70f2d864fcfe33c268adc..8737e423f07d23ab2ac596f282c826f117d5a816 100644
--- a/tools/telemetry/telemetry/core/platform/__init__.py
+++ b/tools/telemetry/telemetry/core/platform/__init__.py
@@ -4,6 +4,7 @@
import sys
+from telemetry.core.platform import profiling_controller
from telemetry.core.platform import tracing_controller
@@ -47,11 +48,17 @@ class Platform(object):
self._platform_backend.SetPlatform(self)
self._tracing_controller = tracing_controller.TracingController(
self._platform_backend.tracing_controller_backend)
+ self._profiling_controller = profiling_controller.ProfilingController(
+ self._platform_backend.profiling_controller_backend)
@property
def tracing_controller(self):
return self._tracing_controller
+ @property
+ def profiling_controller(self):
+ return self._profiling_controller
+
def IsRawDisplayFrameRateSupported(self):
"""Platforms may be able to collect GL surface stats."""
return self._platform_backend.IsRawDisplayFrameRateSupported()
« 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