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

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: Rename benchmarks 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 from measurements import smoothness 8 from measurements import smoothness
9 import page_sets 9 import page_sets
10 from telemetry import benchmark 10 from telemetry import benchmark
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" 58 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
59 tag = 'gpu_rasterization' 59 tag = 'gpu_rasterization'
60 def SetExtraBrowserOptions(self, options): 60 def SetExtraBrowserOptions(self, options):
61 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) 61 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options)
62 62
63 @classmethod 63 @classmethod
64 def Name(cls): 64 def Name(cls):
65 return 'repaint.gpu_rasterization.key_mobile_sites_repaint' 65 return 'repaint.gpu_rasterization.key_mobile_sites_repaint'
66 66
67
68 @benchmark.Disabled
69 class RepaintCT(_Repaint):
70 """Measures repaint performance for Cluster Telemetry."""
71
72 @classmethod
73 def Name(cls):
74 return 'repaint_ct'
75
76 @classmethod
77 def AddBenchmarkCommandLineArgs(cls, parser):
78 _Repaint.AddBenchmarkCommandLineArgs(parser)
79 parser.add_option('--user-agent', action='store', type='string',
80 default=None, help='Options are mobile and desktop.')
81 parser.add_option('--archive-data-file', action='store', type='string',
82 default=None,
83 help='The location of the WPR JSON archive file.')
84 parser.add_option('--urls-list', action='store', type='string',
85 default=None,
86 help='This is a comma separated list of urls. '
87 'Eg: http://www.google.com,http://www.gmail.com')
88
89 @classmethod
90 def ProcessCommandLineArgs(cls, parser, args):
91 if not args.user_agent:
92 parser.error('Please specify --user_agent.')
93 if not args.archive_data_file:
94 parser.error('Please specify --archive_data_file.')
95 if not args.urls_list:
96 parser.error('Please specify --urls_list.')
97
98 def CreateStorySet(self, options):
99 return page_sets.CTPageSet(
100 options.urls_list, options.user_agent, options.archive_data_file)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698