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

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

Issue 641823004: telemetry: Allow page tests to be configured via constructor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Add debug output to figure out why pixel tests fail on bots. Created 6 years, 2 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/page_cycler.py ('k') | tools/perf/measurements/repaint.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 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): 14 def __init__(self):
15 super(RasterizeAndRecordMicro, self).__init__('') 15 super(RasterizeAndRecordMicro, self).__init__('')
16 self._chrome_branch_number = None 16 self._chrome_branch_number = None
17 17
18 @classmethod 18 def AddCommandLineArgs(self, parser):
19 def AddCommandLineArgs(cls, parser):
20 parser.add_option('--start-wait-time', type='float', 19 parser.add_option('--start-wait-time', type='float',
21 default=2, 20 default=2,
22 help='Wait time before the benchmark is started ' 21 help='Wait time before the benchmark is started '
23 '(must be long enought to load all content)') 22 '(must be long enought to load all content)')
24 parser.add_option('--rasterize-repeat', type='int', 23 parser.add_option('--rasterize-repeat', type='int',
25 default=100, 24 default=100,
26 help='Repeat each raster this many times. Increase ' 25 help='Repeat each raster this many times. Increase '
27 'this value to reduce variance.') 26 'this value to reduce variance.')
28 parser.add_option('--record-repeat', type='int', 27 parser.add_option('--record-repeat', type='int',
29 default=100, 28 default=100,
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 results.current_page, 'total_layers', 'count', total_layers)) 138 results.current_page, 'total_layers', 'count', total_layers))
140 results.AddValue(scalar.ScalarValue( 139 results.AddValue(scalar.ScalarValue(
141 results.current_page, 'total_picture_layers', 'count', 140 results.current_page, 'total_picture_layers', 'count',
142 total_picture_layers)) 141 total_picture_layers))
143 results.AddValue(scalar.ScalarValue( 142 results.AddValue(scalar.ScalarValue(
144 results.current_page, 'total_picture_layers_with_no_content', 'count', 143 results.current_page, 'total_picture_layers_with_no_content', 'count',
145 total_picture_layers_with_no_content)) 144 total_picture_layers_with_no_content))
146 results.AddValue(scalar.ScalarValue( 145 results.AddValue(scalar.ScalarValue(
147 results.current_page, 'total_picture_layers_off_screen', 'count', 146 results.current_page, 'total_picture_layers_off_screen', 'count',
148 total_picture_layers_off_screen)) 147 total_picture_layers_off_screen))
OLDNEW
« no previous file with comments | « tools/perf/measurements/page_cycler.py ('k') | tools/perf/measurements/repaint.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698