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

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

Issue 2876073003: Migrate cluster telemetry benchmarks to tools/perf/contrib/cluster_telemetry/ (Closed)
Patch Set: Remove BENCHMARKS_BLACK_LIST Created 3 years, 7 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
(Empty)
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
3 # found in the LICENSE file.
4
5 from core import perf_benchmark
6
7 import ct_benchmarks_util
8 from measurements import smoothness
9
10 import page_sets
11 from page_sets import repaint_helpers
12
13 from telemetry import benchmark
14
15 # Disabled because we do not plan on running CT benchmarks on the perf
16 # waterfall any time soon.
17 @benchmark.Disabled('all')
18 class RepaintCT(perf_benchmark.PerfBenchmark):
19 """Measures repaint performance for Cluster Telemetry."""
20
21 @classmethod
22 def Name(cls):
23 return 'repaint_ct'
24
25 @classmethod
26 def AddBenchmarkCommandLineArgs(cls, parser):
27 parser.add_option('--mode', type='string',
28 default='viewport',
29 help='Invalidation mode. '
30 'Supported values: fixed_size, layer, random, viewport.')
31 parser.add_option('--width', type='int',
32 default=None,
33 help='Width of invalidations for fixed_size mode.')
34 parser.add_option('--height', type='int',
35 default=None,
36 help='Height of invalidations for fixed_size mode.')
37 ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser)
38
39 @classmethod
40 def ProcessCommandLineArgs(cls, parser, args):
41 ct_benchmarks_util.ValidateCommandLineArgs(parser, args)
42
43 def CreateStorySet(self, options):
44 return page_sets.CTPageSet(
45 options.urls_list, options.user_agent, options.archive_data_file,
46 run_page_interaction_callback=repaint_helpers.WaitThenRepaint)
47
48 def CreatePageTest(self, options):
49 return smoothness.Repaint()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698