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

Side by Side Diff: tools/perf/measurements/oilpan_gc_times.py

Issue 1896113003: [tools/perf] Update users of action_runner to directly referencing it from tab.action_runner field (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « tools/perf/measurements/blink_style.py ('k') | tools/perf/measurements/timeline_controller.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import os 5 import os
6 6
7 from telemetry.page import action_runner
8 from telemetry.page import page_test 7 from telemetry.page import page_test
9 from telemetry.timeline.model import TimelineModel 8 from telemetry.timeline.model import TimelineModel
10 from telemetry.timeline import tracing_config 9 from telemetry.timeline import tracing_config
11 from telemetry.value import list_of_scalar_values 10 from telemetry.value import list_of_scalar_values
12 from telemetry.value import scalar 11 from telemetry.value import scalar
13 12
14 13
15 _CR_RENDERER_MAIN = 'CrRendererMain' 14 _CR_RENDERER_MAIN = 'CrRendererMain'
16 _RUN_SMOOTH_ACTIONS = 'RunSmoothAllActions' 15 _RUN_SMOOTH_ACTIONS = 'RunSmoothAllActions'
17 16
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 platform.tracing_controller.StopTracing() 156 platform.tracing_controller.StopTracing()
158 157
159 158
160 class OilpanGCTimesForSmoothness(_OilpanGCTimesBase): 159 class OilpanGCTimesForSmoothness(_OilpanGCTimesBase):
161 160
162 def __init__(self): 161 def __init__(self):
163 super(OilpanGCTimesForSmoothness, self).__init__() 162 super(OilpanGCTimesForSmoothness, self).__init__()
164 self._interaction = None 163 self._interaction = None
165 164
166 def DidNavigateToPage(self, page, tab): 165 def DidNavigateToPage(self, page, tab):
167 runner = action_runner.ActionRunner(tab) 166 self._interaction = tab.action_runner.CreateInteraction(_RUN_SMOOTH_ACTIONS)
168 self._interaction = runner.CreateInteraction(_RUN_SMOOTH_ACTIONS)
169 self._interaction.Begin() 167 self._interaction.Begin()
170 168
171 def ValidateAndMeasurePage(self, page, tab, results): 169 def ValidateAndMeasurePage(self, page, tab, results):
172 self._interaction.End() 170 self._interaction.End()
173 super(OilpanGCTimesForSmoothness, self).ValidateAndMeasurePage( 171 super(OilpanGCTimesForSmoothness, self).ValidateAndMeasurePage(
174 page, tab, results) 172 page, tab, results)
175 173
176 174
177 class OilpanGCTimesForBlinkPerf(_OilpanGCTimesBase): 175 class OilpanGCTimesForBlinkPerf(_OilpanGCTimesBase):
178 176
(...skipping 17 matching lines...) Expand all
196 194
197 def __init__(self): 195 def __init__(self):
198 super(OilpanGCTimesForInternals, self).__init__() 196 super(OilpanGCTimesForInternals, self).__init__()
199 197
200 @classmethod 198 @classmethod
201 def CustomizeBrowserOptions(cls, options): 199 def CustomizeBrowserOptions(cls, options):
202 # 'expose-internals-for-testing' can be enabled on content shell. 200 # 'expose-internals-for-testing' can be enabled on content shell.
203 assert 'content-shell' in options.browser_type 201 assert 'content-shell' in options.browser_type
204 options.AppendExtraBrowserArgs(['--expose-internals-for-testing', 202 options.AppendExtraBrowserArgs(['--expose-internals-for-testing',
205 '--js-flags=--expose-gc']) 203 '--js-flags=--expose-gc'])
OLDNEW
« no previous file with comments | « tools/perf/measurements/blink_style.py ('k') | tools/perf/measurements/timeline_controller.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698