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

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

Issue 816353008: [Telemetry] Explicitly define Name() method for all perf benchmarks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
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 from measurements import rasterize_and_record_micro 5 from measurements import rasterize_and_record_micro
6 import page_sets 6 import page_sets
7 from telemetry import benchmark 7 from telemetry import benchmark
8 8
9 9
10 class _RasterizeAndRecordMicro(benchmark.Benchmark): 10 class _RasterizeAndRecordMicro(benchmark.Benchmark):
(...skipping 12 matching lines...) Expand all
23 help='Repeat each record this many times. Increase ' 23 help='Repeat each record this many times. Increase '
24 'this value to reduce variance.') 24 'this value to reduce variance.')
25 parser.add_option('--timeout', type='int', 25 parser.add_option('--timeout', type='int',
26 default=120, 26 default=120,
27 help='The length of time to wait for the micro ' 27 help='The length of time to wait for the micro '
28 'benchmark to finish, expressed in seconds.') 28 'benchmark to finish, expressed in seconds.')
29 parser.add_option('--report-detailed-results', 29 parser.add_option('--report-detailed-results',
30 action='store_true', 30 action='store_true',
31 help='Whether to report additional detailed results.') 31 help='Whether to report additional detailed results.')
32 32
33 @classmethod
34 def Name(cls):
35 return 'rasterize_and_record_micro'
36
33 def CreatePageTest(self, options): 37 def CreatePageTest(self, options):
34 return rasterize_and_record_micro.RasterizeAndRecordMicro( 38 return rasterize_and_record_micro.RasterizeAndRecordMicro(
35 options.start_wait_time, options.rasterize_repeat, 39 options.start_wait_time, options.rasterize_repeat,
36 options.record_repeat, options.timeout, options.report_detailed_results) 40 options.record_repeat, options.timeout, options.report_detailed_results)
37 41
38 # RasterizeAndRecord disabled on mac because of crbug.com/350684. 42 # RasterizeAndRecord disabled on mac because of crbug.com/350684.
39 # RasterizeAndRecord disabled on windows because of crbug.com/338057. 43 # RasterizeAndRecord disabled on windows because of crbug.com/338057.
40 @benchmark.Disabled('mac', 'win') 44 @benchmark.Disabled('mac', 'win')
41 class RasterizeAndRecordMicroTop25(_RasterizeAndRecordMicro): 45 class RasterizeAndRecordMicroTop25(_RasterizeAndRecordMicro):
42 """Measures rasterize and record performance on the top 25 web pages. 46 """Measures rasterize and record performance on the top 25 web pages.
43 47
44 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" 48 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
45 page_set = page_sets.Top25SmoothPageSet 49 page_set = page_sets.Top25SmoothPageSet
46 50
51 @classmethod
52 def Name(cls):
53 return 'rasterize_and_record_micro.top_25_smooth'
54
47 55
48 @benchmark.Disabled('mac', 'win') 56 @benchmark.Disabled('mac', 'win')
49 class RasterizeAndRecordMicroKeyMobileSites(_RasterizeAndRecordMicro): 57 class RasterizeAndRecordMicroKeyMobileSites(_RasterizeAndRecordMicro):
50 """Measures rasterize and record performance on the key mobile sites. 58 """Measures rasterize and record performance on the key mobile sites.
51 59
52 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" 60 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
53 page_set = page_sets.KeyMobileSitesSmoothPageSet 61 page_set = page_sets.KeyMobileSitesSmoothPageSet
54 62
63 @classmethod
64 def Name(cls):
65 return 'rasterize_and_record_micro.key_mobile_sites_smooth'
66
55 67
56 @benchmark.Disabled('mac', 'win') 68 @benchmark.Disabled('mac', 'win')
57 class RasterizeAndRecordMicroKeySilkCases(_RasterizeAndRecordMicro): 69 class RasterizeAndRecordMicroKeySilkCases(_RasterizeAndRecordMicro):
58 """Measures rasterize and record performance on the silk sites. 70 """Measures rasterize and record performance on the silk sites.
59 71
60 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" 72 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
61 page_set = page_sets.KeySilkCasesPageSet 73 page_set = page_sets.KeySilkCasesPageSet
62 74
75 @classmethod
76 def Name(cls):
77 return 'rasterize_and_record_micro.key_silk_cases'
78
63 79
64 @benchmark.Enabled('android') 80 @benchmark.Enabled('android')
65 class RasterizeAndRecordMicroPolymer(_RasterizeAndRecordMicro): 81 class RasterizeAndRecordMicroPolymer(_RasterizeAndRecordMicro):
66 """Measures rasterize and record performance on the Polymer cases. 82 """Measures rasterize and record performance on the Polymer cases.
67 83
68 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" 84 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
69 page_set = page_sets.PolymerPageSet 85 page_set = page_sets.PolymerPageSet
86 @classmethod
87 def Name(cls):
88 return 'rasterize_and_record_micro.polymer'
89
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698