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

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

Issue 1393023002: Move CT pages / page sets / benchmarks into Telemetry repo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 5 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/benchmarks/ct_benchmarks_unittest.py ('k') | tools/perf/benchmarks/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 from core import perf_benchmark 5 from core import perf_benchmark
6 6
7 import ct_benchmarks_util
7 from measurements import rasterize_and_record_micro 8 from measurements import rasterize_and_record_micro
8 import page_sets 9 import page_sets
9 from telemetry import benchmark 10 from telemetry import benchmark
10 11
11 12
12 class _RasterizeAndRecordMicro(perf_benchmark.PerfBenchmark): 13 class _RasterizeAndRecordMicro(perf_benchmark.PerfBenchmark):
13 @classmethod 14 @classmethod
14 def AddBenchmarkCommandLineArgs(cls, parser): 15 def AddBenchmarkCommandLineArgs(cls, parser):
15 parser.add_option('--start-wait-time', type='float', 16 parser.add_option('--start-wait-time', type='float',
16 default=2, 17 default=2,
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 """Measures rasterize and record performance on the Polymer cases. 89 """Measures rasterize and record performance on the Polymer cases.
89 90
90 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" 91 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
91 92
92 @classmethod 93 @classmethod
93 def Name(cls): 94 def Name(cls):
94 return 'rasterize_and_record_micro.polymer' 95 return 'rasterize_and_record_micro.polymer'
95 96
96 def CreateStorySet(self, options): 97 def CreateStorySet(self, options):
97 return page_sets.PolymerPageSet(run_no_page_interactions=True) 98 return page_sets.PolymerPageSet(run_no_page_interactions=True)
99
100
101 # Disabled because we do not plan on running CT benchmarks on the perf
102 # waterfall any time soon.
103 @benchmark.Disabled
104 class RasterizeAndRecordMicroCT(_RasterizeAndRecordMicro):
105 """Measures rasterize and record performance for Cluster Telemetry."""
106
107 @classmethod
108 def Name(cls):
109 return 'rasterize_and_record_micro_ct'
110
111 @classmethod
112 def AddBenchmarkCommandLineArgs(cls, parser):
113 _RasterizeAndRecordMicro.AddBenchmarkCommandLineArgs(parser)
114 ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser)
115
116 @classmethod
117 def ProcessCommandLineArgs(cls, parser, args):
118 ct_benchmarks_util.ValidateCommandLineArgs(parser, args)
119
120 def CreateStorySet(self, options):
121 return page_sets.CTPageSet(
122 options.urls_list, options.user_agent, options.archive_data_file)
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/ct_benchmarks_unittest.py ('k') | tools/perf/benchmarks/repaint.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698