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

Side by Side Diff: ct/py/benchmarks/smoothness.py

Issue 1392173005: [CT] Update worker scripts to use new benchmarks and delete old benchmarks (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Remove staging code 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
(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()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698