OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 # This file has been copied from | |
6 # https://chromium.googlesource.com/chromium/src/+/master/tools/perf/benchmarks/
smoothness.py | |
7 # and modified locally to support CT pagesets. Hopefully one day this file | |
8 # will live in telemetry codebase instead. | |
9 | |
10 from benchmarks import skpicture_printer | |
11 from benchmarks import silk_flags | |
12 import page_sets | |
13 from measurements import smoothness | |
14 from telemetry import benchmark | |
15 | |
16 | |
17 @benchmark.Disabled | |
18 class SmoothnessCTPages(benchmark.Benchmark): | |
19 test = smoothness.Smoothness | |
20 | |
21 @classmethod | |
22 def AddBenchmarkCommandLineArgs(cls, parser): | |
23 parser.add_option('--page-set-name', action='store', type='string') | |
24 parser.add_option('--page-set-base-dir', action='store', type='string') | |
25 | |
26 @classmethod | |
27 def ProcessCommandLineArgs(cls, parser, args): | |
28 if not args.page_set_name: | |
29 parser.error('Please specify --page-set-name') | |
30 if not args.page_set_base_dir: | |
31 parser.error('Please specify --page-set-base-dir') | |
32 | |
33 def CreateStorySet(self, options): | |
34 page_set_class = skpicture_printer._MatchPageSetName( | |
35 options.page_set_name, options.page_set_base_dir) | |
36 return page_set_class() | |
OLD | NEW |