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

Unified Diff: build/android/pylib/surface_stats_collector.py

Issue 12690012: Android: SurfaceStats cleanup (last side). (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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/surface_stats_collector.py
diff --git a/build/android/pylib/surface_stats_collector.py b/build/android/pylib/surface_stats_collector.py
index ca41355cae703e75c704526b1c26f4aa180d4fb4..96da78b3d5a359da553d096c8dc9821c5196aadc 100644
--- a/build/android/pylib/surface_stats_collector.py
+++ b/build/android/pylib/surface_stats_collector.py
@@ -28,7 +28,7 @@ class SurfaceStatsCollector(object):
self.value = value
self.unit = unit
- def __init__(self, adb, trace_tag=''):
+ def __init__(self, adb):
self._adb = adb
self._collector_thread = None
self._use_legacy_method = False
@@ -38,9 +38,6 @@ class SurfaceStatsCollector(object):
self._stop_event = None
self._results = []
- def __enter__(self):
- self.Start()
-
def Start(self):
assert not self._collector_thread
@@ -54,9 +51,6 @@ class SurfaceStatsCollector(object):
self._use_legacy_method = True
self._surface_before = self._GetSurfaceStatsLegacy()
- def __exit__(self, *args):
- self.Stop()
-
def Stop(self):
self._StorePerfResults()
if self._collector_thread:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698