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

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

Issue 973173002: Switch rasterize_and_record_micro measurement to use RunPageInteractions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « tools/perf/measurements/measurement_smoke_test.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 sys 5 import sys
6 import time 6 import time
7 7
8 from telemetry.core.util import TimeoutException 8 from telemetry.core.util import TimeoutException
9 from telemetry.page import page_test 9 from telemetry.page import page_test
10 from telemetry.value import scalar 10 from telemetry.value import scalar
11 11
12 12
13 class RasterizeAndRecordMicro(page_test.PageTest): 13 class RasterizeAndRecordMicro(page_test.PageTest):
14 def __init__(self, start_wait_time=2, rasterize_repeat=100, record_repeat=100, 14 def __init__(self, start_wait_time=2, rasterize_repeat=100, record_repeat=100,
15 timeout=120, report_detailed_results=False): 15 timeout=120, report_detailed_results=False):
16 super(RasterizeAndRecordMicro, self).__init__('') 16 super(RasterizeAndRecordMicro, self).__init__(
17 action_name_to_run='RunPageInteractions')
17 self._chrome_branch_number = None 18 self._chrome_branch_number = None
18 self._start_wait_time = start_wait_time 19 self._start_wait_time = start_wait_time
19 self._rasterize_repeat = rasterize_repeat 20 self._rasterize_repeat = rasterize_repeat
20 self._record_repeat = record_repeat 21 self._record_repeat = record_repeat
21 self._timeout = timeout 22 self._timeout = timeout
22 self._report_detailed_results = report_detailed_results 23 self._report_detailed_results = report_detailed_results
23 24
24 def CustomizeBrowserOptions(self, options): 25 def CustomizeBrowserOptions(self, options):
25 options.AppendExtraBrowserArgs([ 26 options.AppendExtraBrowserArgs([
26 '--enable-impl-side-painting', 27 '--enable-impl-side-painting',
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 results.current_page, 'total_layers', 'count', total_layers)) 134 results.current_page, 'total_layers', 'count', total_layers))
134 results.AddValue(scalar.ScalarValue( 135 results.AddValue(scalar.ScalarValue(
135 results.current_page, 'total_picture_layers', 'count', 136 results.current_page, 'total_picture_layers', 'count',
136 total_picture_layers)) 137 total_picture_layers))
137 results.AddValue(scalar.ScalarValue( 138 results.AddValue(scalar.ScalarValue(
138 results.current_page, 'total_picture_layers_with_no_content', 'count', 139 results.current_page, 'total_picture_layers_with_no_content', 'count',
139 total_picture_layers_with_no_content)) 140 total_picture_layers_with_no_content))
140 results.AddValue(scalar.ScalarValue( 141 results.AddValue(scalar.ScalarValue(
141 results.current_page, 'total_picture_layers_off_screen', 'count', 142 results.current_page, 'total_picture_layers_off_screen', 'count',
142 total_picture_layers_off_screen)) 143 total_picture_layers_off_screen))
OLDNEW
« no previous file with comments | « tools/perf/measurements/measurement_smoke_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698