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

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

Issue 1266833004: telemetry: Add a page set for blink's memory usage measurement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disabled Created 5 years, 3 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 | « no previous file | tools/perf/benchmarks/memory_benchmark.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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 # Handle the case where the benchmark is Enabled/Disabled everywhere. 144 # Handle the case where the benchmark is Enabled/Disabled everywhere.
145 if (getattr(method, attribute, None) == [] or 145 if (getattr(method, attribute, None) == [] or
146 getattr(benchmark, attribute, None) == []): 146 getattr(benchmark, attribute, None) == []):
147 setattr(method, attribute, []) 147 setattr(method, attribute, [])
148 148
149 # Disable some tests on android platform only. 149 # Disable some tests on android platform only.
150 if sys.modules[benchmark.__module__] in _ANDROID_BLACK_LIST_MODULES: 150 if sys.modules[benchmark.__module__] in _ANDROID_BLACK_LIST_MODULES:
151 method._disabled_strings.append('android') 151 method._disabled_strings.append('android')
152 152
153 # TODO(bashi): Remove once crrev.com/1266833004 is landed.
154 if benchmark.Name() == 'memory.blink_memory_mobile':
155 method._disabled_strings.append('android')
156
153 setattr(BenchmarkSmokeTest, benchmark.Name(), method) 157 setattr(BenchmarkSmokeTest, benchmark.Name(), method)
154 158
155 suite.addTest(BenchmarkSmokeTest(benchmark.Name())) 159 suite.addTest(BenchmarkSmokeTest(benchmark.Name()))
156 160
157 return suite 161 return suite
OLDNEW
« no previous file with comments | « no previous file | tools/perf/benchmarks/memory_benchmark.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698