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

Side by Side Diff: tools/perf/benchmarks/repaint.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: Fix lint 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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 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 from benchmarks import silk_flags 7 from benchmarks import silk_flags
8 import ct_benchmarks_util
8 from measurements import smoothness 9 from measurements import smoothness
9 import page_sets 10 import page_sets
10 from telemetry import benchmark 11 from telemetry import benchmark
11 12
12 13
13 class _Repaint(perf_benchmark.PerfBenchmark): 14 class _Repaint(perf_benchmark.PerfBenchmark):
14 @classmethod 15 @classmethod
15 def AddBenchmarkCommandLineArgs(cls, parser): 16 def AddBenchmarkCommandLineArgs(cls, parser):
16 parser.add_option('--mode', type='string', 17 parser.add_option('--mode', type='string',
17 default='viewport', 18 default='viewport',
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 58
58 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" 59 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
59 tag = 'gpu_rasterization' 60 tag = 'gpu_rasterization'
60 def SetExtraBrowserOptions(self, options): 61 def SetExtraBrowserOptions(self, options):
61 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) 62 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options)
62 63
63 @classmethod 64 @classmethod
64 def Name(cls): 65 def Name(cls):
65 return 'repaint.gpu_rasterization.key_mobile_sites_repaint' 66 return 'repaint.gpu_rasterization.key_mobile_sites_repaint'
66 67
68
69 @benchmark.Disabled
70 class RepaintCT(_Repaint):
71 """Measures repaint performance for Cluster Telemetry."""
72
73 @classmethod
74 def Name(cls):
75 return 'repaint_ct'
76
77 @classmethod
78 def AddBenchmarkCommandLineArgs(cls, parser):
79 _Repaint.AddBenchmarkCommandLineArgs(parser)
80 ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser)
81
82 @classmethod
83 def ProcessCommandLineArgs(cls, parser, args):
84 ct_benchmarks_util.ValidateCommandLineArgs(parser, args)
85
86 def CreateStorySet(self, options):
87 return page_sets.CTPageSet(
88 options.urls_list, options.user_agent, options.archive_data_file)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698