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

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

Issue 809753002: Revert of telemetry: Clean up SurfaceFlinger statistics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 6f3c643b31704f1fe48efc3547b3afcd36518fab..fab8a1beaab9ce0967750943cc8066e02762e400 100644
--- a/tools/telemetry/telemetry/core/platform/__init__.py
+++ b/tools/telemetry/telemetry/core/platform/__init__.py
@@ -102,23 +102,39 @@
def profiling_controller(self):
return self._profiling_controller
- def IsDisplayTracingSupported(self):
- """Platforms may be able to gather a trace with frame timestamps close to
- pysical display"""
- return self._platform_backend.IsDisplayTracingSupported()
-
- def StartDisplayTracing(self):
- """Start gathering a trace with frame timestamps close to pysical
- display."""
- return self._platform_backend.StartDisplayTracing()
-
- def StopDisplayTracing(self):
- """Stop gathering a trace with frame timestamps close to pysical display.
-
- Returns a TracingTimelineData object for import of the timestamps into
- timeline model.
- """
- return self._platform_backend.StopDisplayTracing()
+ def IsRawDisplayFrameRateSupported(self):
+ """Platforms may be able to collect GL surface stats."""
+ return self._platform_backend.IsRawDisplayFrameRateSupported()
+
+ def StartRawDisplayFrameRateMeasurement(self):
+ """Start measuring GL surface stats."""
+ return self._platform_backend.StartRawDisplayFrameRateMeasurement()
+
+ def StopRawDisplayFrameRateMeasurement(self):
+ """Stop measuring GL surface stats."""
+ return self._platform_backend.StopRawDisplayFrameRateMeasurement()
+
+ class RawDisplayFrameRateMeasurement(object):
+ def __init__(self, name, value, unit):
+ self._name = name
+ self._value = value
+ self._unit = unit
+
+ @property
+ def name(self):
+ return self._name
+
+ @property
+ def value(self):
+ return self._value
+
+ @property
+ def unit(self):
+ return self._unit
+
+ def GetRawDisplayFrameRateMeasurements(self):
+ """Returns a list of RawDisplayFrameRateMeasurement."""
+ return self._platform_backend.GetRawDisplayFrameRateMeasurements()
def CanMonitorThermalThrottling(self):
"""Platforms may be able to detect thermal throttling.
« no previous file with comments | « tools/perf/measurements/smoothness_unittest.py ('k') | tools/telemetry/telemetry/core/platform/android_platform_backend.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698