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/chrome/android_platform_backend.py

Issue 12513011: Telemetry / Android: further cleanup on surface_stats_collector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | « build/android/pylib/surface_stats_collector.py ('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/chrome/android_platform_backend.py
diff --git a/tools/telemetry/telemetry/core/chrome/android_platform_backend.py b/tools/telemetry/telemetry/core/chrome/android_platform_backend.py
index e5d8036ba798b2da54a62ba89e1cc902b0bdf970..a1d4745dee26ad3055aced519caa9b2539167eee 100644
--- a/tools/telemetry/telemetry/core/chrome/android_platform_backend.py
+++ b/tools/telemetry/telemetry/core/chrome/android_platform_backend.py
@@ -42,12 +42,11 @@ class AndroidPlatformBackend(platform_backend.PlatformBackend):
def StartRawDisplayFrameRateMeasurement(self):
assert not self._surface_stats_collector
self._surface_stats_collector = \
- surface_stats_collector.SurfaceStatsCollector(self._adb, '')
- self._surface_stats_collector.SuppressPrintingResults()
- self._surface_stats_collector.__enter__()
+ surface_stats_collector.SurfaceStatsCollector(self._adb)
+ self._surface_stats_collector.Start()
def StopRawDisplayFrameRateMeasurement(self):
- self._surface_stats_collector.__exit__()
+ self._surface_stats_collector.Stop()
for r in self._surface_stats_collector.GetResults():
self._raw_display_frame_rate_measurements.append(
platform.Platform.RawDisplayFrameRateMeasurement(
« no previous file with comments | « build/android/pylib/surface_stats_collector.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698