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

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

Issue 2472123002: [tools/perf] Disable output format on benchmark_smoke_unittest & system_health_smoke_test (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | tools/perf/benchmarks/system_health_smoke_test.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 """Run the first page of one benchmark for every module. 5 """Run the first page of one benchmark for every module.
6 6
7 Only benchmarks that have a composable measurement are included. 7 Only benchmarks that have a composable measurement are included.
8 Ideally this test would be comprehensive, however, running one page 8 Ideally this test would be comprehensive, however, running one page
9 of every benchmark would run impractically long. 9 of every benchmark would run impractically long.
10 """ 10 """
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 def CreateStorySet(self, options): 53 def CreateStorySet(self, options):
54 # pylint: disable=super-on-old-class 54 # pylint: disable=super-on-old-class
55 story_set = super(SinglePageBenchmark, self).CreateStorySet(options) 55 story_set = super(SinglePageBenchmark, self).CreateStorySet(options)
56 for story in story_set.stories: 56 for story in story_set.stories:
57 story_set.stories = [story] 57 story_set.stories = [story]
58 break 58 break
59 return story_set 59 return story_set
60 60
61 # Set the benchmark's default arguments. 61 # Set the benchmark's default arguments.
62 options = options_for_unittests.GetCopy() 62 options = options_for_unittests.GetCopy()
63 options.output_format = 'none' 63 options.output_formats = ['none']
64 parser = options.CreateParser() 64 parser = options.CreateParser()
65 65
66 benchmark.AddCommandLineArgs(parser) 66 benchmark.AddCommandLineArgs(parser)
67 benchmark_module.AddCommandLineArgs(parser) 67 benchmark_module.AddCommandLineArgs(parser)
68 benchmark.SetArgumentDefaults(parser) 68 benchmark.SetArgumentDefaults(parser)
69 options.MergeDefaultValues(parser.get_default_values()) 69 options.MergeDefaultValues(parser.get_default_values())
70 70
71 benchmark.ProcessCommandLineArgs(None, options) 71 benchmark.ProcessCommandLineArgs(None, options)
72 benchmark_module.ProcessCommandLineArgs(None, options) 72 benchmark_module.ProcessCommandLineArgs(None, options)
73 73
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 MergeDecorators(method, disabled_method_attr, benchmark, 151 MergeDecorators(method, disabled_method_attr, benchmark,
152 disabled_benchmark_attr) 152 disabled_benchmark_attr)
153 MergeDecorators(method, enabled_method_attr, benchmark, 153 MergeDecorators(method, enabled_method_attr, benchmark,
154 enabled_benchmark_attr) 154 enabled_benchmark_attr)
155 155
156 setattr(BenchmarkSmokeTest, benchmark.Name(), method) 156 setattr(BenchmarkSmokeTest, benchmark.Name(), method)
157 157
158 suite.addTest(BenchmarkSmokeTest(benchmark.Name())) 158 suite.addTest(BenchmarkSmokeTest(benchmark.Name()))
159 159
160 return suite 160 return suite
OLDNEW
« no previous file with comments | « no previous file | tools/perf/benchmarks/system_health_smoke_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698