OLD | NEW |
---|---|
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 28 matching lines...) Expand all Loading... | |
39 for p in ps.pages: | 39 for p in ps.pages: |
40 p.skip_waits = True | 40 p.skip_waits = True |
41 ps.user_stories = [p] | 41 ps.user_stories = [p] |
42 break | 42 break |
43 return ps | 43 return ps |
44 | 44 |
45 # Set the benchmark's default arguments. | 45 # Set the benchmark's default arguments. |
46 options = options_for_unittests.GetCopy() | 46 options = options_for_unittests.GetCopy() |
47 options.output_format = 'none' | 47 options.output_format = 'none' |
48 options.suppress_gtest_report = True | 48 options.suppress_gtest_report = True |
49 options.profiler = 'trace' | |
50 options.upload_results = True | |
nednguyen
2014/11/20 02:04:11
We will revert these changes upon submission, I as
Yufeng Shen (Slow to review)
2014/11/20 17:56:15
yes.
| |
49 parser = options.CreateParser() | 51 parser = options.CreateParser() |
50 | 52 |
51 benchmark.AddCommandLineArgs(parser) | 53 benchmark.AddCommandLineArgs(parser) |
52 benchmark_module.AddCommandLineArgs(parser) | 54 benchmark_module.AddCommandLineArgs(parser) |
53 benchmark.SetArgumentDefaults(parser) | 55 benchmark.SetArgumentDefaults(parser) |
54 options.MergeDefaultValues(parser.get_default_values()) | 56 options.MergeDefaultValues(parser.get_default_values()) |
55 | 57 |
56 benchmark.ProcessCommandLineArgs(None, options) | 58 benchmark.ProcessCommandLineArgs(None, options) |
57 benchmark_module.ProcessCommandLineArgs(None, options) | 59 benchmark_module.ProcessCommandLineArgs(None, options) |
58 | 60 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
105 # in a class, and then throw the ones we don't need away instead. | 107 # in a class, and then throw the ones we don't need away instead. |
106 if hasattr(benchmark, '_enabled_strings'): | 108 if hasattr(benchmark, '_enabled_strings'): |
107 method._enabled_strings = benchmark._enabled_strings | 109 method._enabled_strings = benchmark._enabled_strings |
108 if hasattr(benchmark, '_disabled_strings'): | 110 if hasattr(benchmark, '_disabled_strings'): |
109 method._disabled_strings = benchmark._disabled_strings | 111 method._disabled_strings = benchmark._disabled_strings |
110 setattr(BenchmarkSmokeTest, benchmark.Name(), method) | 112 setattr(BenchmarkSmokeTest, benchmark.Name(), method) |
111 | 113 |
112 suite.addTest(BenchmarkSmokeTest(benchmark.Name())) | 114 suite.addTest(BenchmarkSmokeTest(benchmark.Name())) |
113 | 115 |
114 return suite | 116 return suite |
OLD | NEW |