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

Side by Side Diff: telemetry/telemetry/benchmark.py

Issue 2978643002: Removing bad-continuation param and fixing resulting errors. Fixed indentation errors, in telemetry… (Closed)
Patch Set: Created 3 years, 5 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
« no previous file with comments | « telemetry/telemetry/__init__.py ('k') | telemetry/telemetry/benchmark_run_unittest.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 import optparse 5 import optparse
6 6
7 from telemetry import decorators 7 from telemetry import decorators
8 from telemetry.internal import story_runner 8 from telemetry.internal import story_runner
9 from telemetry.internal.util import command_line 9 from telemetry.internal.util import command_line
10 from telemetry.page import legacy_page_test 10 from telemetry.page import legacy_page_test
(...skipping 22 matching lines...) Expand all
33 33
34 @property 34 @property
35 def description(self): 35 def description(self):
36 return self._description 36 return self._description
37 37
38 @property 38 @property
39 def rerun_options(self): 39 def rerun_options(self):
40 return self._rerun_options 40 return self._rerun_options
41 41
42 def AsDict(self): 42 def AsDict(self):
43 return { 43 return {\
44 'type': 'telemetry_benchmark', 44 'type': 'telemetry_benchmark',
45 'name': self._name, 45 'name': self._name,
46 'description': self._description, 46 'description': self._description,
47 'rerun_options': self._rerun_options, 47 'rerun_options': self._rerun_options}
48 }
49
50 48
51 class Benchmark(command_line.Command): 49 class Benchmark(command_line.Command):
52 """Base class for a Telemetry benchmark. 50 """Base class for a Telemetry benchmark.
53 51
54 A benchmark packages a measurement and a PageSet together. 52 A benchmark packages a measurement and a PageSet together.
55 Benchmarks default to using TBM unless you override the value of 53 Benchmarks default to using TBM unless you override the value of
56 Benchmark.test, or override the CreatePageTest method. 54 Benchmark.test, or override the CreatePageTest method.
57 55
58 New benchmarks should override CreateStorySet. 56 New benchmarks should override CreateStorySet.
59 """ 57 """
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 """ 302 """
305 return expectations.StoryExpectations() 303 return expectations.StoryExpectations()
306 304
307 305
308 def AddCommandLineArgs(parser): 306 def AddCommandLineArgs(parser):
309 story_runner.AddCommandLineArgs(parser) 307 story_runner.AddCommandLineArgs(parser)
310 308
311 309
312 def ProcessCommandLineArgs(parser, args): 310 def ProcessCommandLineArgs(parser, args):
313 story_runner.ProcessCommandLineArgs(parser, args) 311 story_runner.ProcessCommandLineArgs(parser, args)
OLDNEW
« no previous file with comments | « telemetry/telemetry/__init__.py ('k') | telemetry/telemetry/benchmark_run_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698