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

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

Issue 1428133005: [Telemetry] Allows concatenating multiple Disabled & Enabled decorators (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Dave's comment Created 5 years, 1 month 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 import ct_benchmarks_util
9 from measurements import smoothness 9 from measurements import smoothness
10 import page_sets 10 import page_sets
(...skipping 20 matching lines...) Expand all
31 31
32 def CreateStorySet(self, options): 32 def CreateStorySet(self, options):
33 return page_sets.KeyMobileSitesRepaintPageSet( 33 return page_sets.KeyMobileSitesRepaintPageSet(
34 options.mode, options.width, options.height) 34 options.mode, options.width, options.height)
35 35
36 def CreatePageTest(self, options): 36 def CreatePageTest(self, options):
37 return smoothness.Repaint() 37 return smoothness.Repaint()
38 38
39 #crbug.com/499320 39 #crbug.com/499320
40 #@benchmark.Enabled('android') 40 #@benchmark.Enabled('android')
41 @benchmark.Disabled() 41 @benchmark.Disabled('all')
42 class RepaintKeyMobileSites(_Repaint): 42 class RepaintKeyMobileSites(_Repaint):
43 """Measures repaint performance on the key mobile sites. 43 """Measures repaint performance on the key mobile sites.
44 44
45 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" 45 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
46 46
47 @classmethod 47 @classmethod
48 def Name(cls): 48 def Name(cls):
49 return 'repaint.key_mobile_sites_repaint' 49 return 'repaint.key_mobile_sites_repaint'
50 50
51 51
52 #crbug.com/502179 52 #crbug.com/502179
53 @benchmark.Enabled('android') 53 @benchmark.Enabled('android')
54 @benchmark.Disabled() 54 @benchmark.Disabled('all')
55 class RepaintGpuRasterizationKeyMobileSites(_Repaint): 55 class RepaintGpuRasterizationKeyMobileSites(_Repaint):
56 """Measures repaint performance on the key mobile sites with forced GPU 56 """Measures repaint performance on the key mobile sites with forced GPU
57 rasterization. 57 rasterization.
58 58
59 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" 59 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
60 tag = 'gpu_rasterization' 60 tag = 'gpu_rasterization'
61 def SetExtraBrowserOptions(self, options): 61 def SetExtraBrowserOptions(self, options):
62 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) 62 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options)
63 63
64 @classmethod 64 @classmethod
65 def Name(cls): 65 def Name(cls):
66 return 'repaint.gpu_rasterization.key_mobile_sites_repaint' 66 return 'repaint.gpu_rasterization.key_mobile_sites_repaint'
67 67
68 68
69 # Disabled because we do not plan on running CT benchmarks on the perf 69 # Disabled because we do not plan on running CT benchmarks on the perf
70 # waterfall any time soon. 70 # waterfall any time soon.
71 @benchmark.Disabled 71 @benchmark.Disabled('all')
72 class RepaintCT(_Repaint): 72 class RepaintCT(_Repaint):
73 """Measures repaint performance for Cluster Telemetry.""" 73 """Measures repaint performance for Cluster Telemetry."""
74 74
75 @classmethod 75 @classmethod
76 def Name(cls): 76 def Name(cls):
77 return 'repaint_ct' 77 return 'repaint_ct'
78 78
79 @classmethod 79 @classmethod
80 def AddBenchmarkCommandLineArgs(cls, parser): 80 def AddBenchmarkCommandLineArgs(cls, parser):
81 _Repaint.AddBenchmarkCommandLineArgs(parser) 81 _Repaint.AddBenchmarkCommandLineArgs(parser)
82 ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser) 82 ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser)
83 83
84 @classmethod 84 @classmethod
85 def ProcessCommandLineArgs(cls, parser, args): 85 def ProcessCommandLineArgs(cls, parser, args):
86 ct_benchmarks_util.ValidateCommandLineArgs(parser, args) 86 ct_benchmarks_util.ValidateCommandLineArgs(parser, args)
87 87
88 def CreateStorySet(self, options): 88 def CreateStorySet(self, options):
89 return page_sets.CTPageSet( 89 return page_sets.CTPageSet(
90 options.urls_list, options.user_agent, options.archive_data_file) 90 options.urls_list, options.user_agent, options.archive_data_file)
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/rasterize_and_record_micro.py ('k') | tools/perf/benchmarks/skpicture_printer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698