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

Side by Side Diff: tools/nanobench_flags.py

Issue 1720223002: Run no CPU benches in Debug trybots. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: trybot only Created 4 years, 10 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 | « tools/nanobench_flags.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 1 #
2 # Copyright 2015 Google Inc. 2 # Copyright 2015 Google Inc.
3 # 3 #
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 # 6 #
7 7
8 #!/usr/bin/env python 8 #!/usr/bin/env python
9 9
10 usage = ''' 10 usage = '''
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 match.append('~inc1.ico') 113 match.append('~inc1.ico')
114 match.append('~inc0.png') 114 match.append('~inc0.png')
115 match.append('~inc1.png') 115 match.append('~inc1.png')
116 match.append('~inc2.png') 116 match.append('~inc2.png')
117 match.append('~inc12.png') 117 match.append('~inc12.png')
118 match.append('~inc13.png') 118 match.append('~inc13.png')
119 match.append('~inc14.png') 119 match.append('~inc14.png')
120 match.append('~inc0.webp') 120 match.append('~inc0.webp')
121 match.append('~inc1.webp') 121 match.append('~inc1.webp')
122 122
123 # As an experiment, skip nanobench on Debug trybots.
124 if 'Debug' in bot and 'CPU' in bot and 'Trybot' in bot:
125 match = ['nothing_will_match_this']
126
123 if match: 127 if match:
124 args.append('--match') 128 args.append('--match')
125 args.extend(match) 129 args.extend(match)
126 130
127 return args 131 return args
128 cov_end = lineno() # Don't care about code coverage past here. 132 cov_end = lineno() # Don't care about code coverage past here.
129 133
130 134
131 def self_test(): 135 def self_test():
132 import coverage # This way the bots don't need coverage.py to be installed. 136 import coverage # This way the bots don't need coverage.py to be installed.
133 args = {} 137 args = {}
134 cases = [ 138 cases = [
135 'Perf-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Release', 139 'Perf-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Release',
136 'Perf-Android-Nexus7-Tegra3-Arm7-Release', 140 'Perf-Android-Nexus7-Tegra3-Arm7-Release',
137 'Perf-Android-GCC-NexusPlayer-GPU-PowerVR-x86-Release', 141 'Perf-Android-GCC-NexusPlayer-GPU-PowerVR-x86-Release',
138 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', 142 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind',
139 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', 143 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE',
140 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', 144 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug',
141 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release', 145 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release',
146 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot',
142 ] 147 ]
143 148
144 cov = coverage.coverage() 149 cov = coverage.coverage()
145 cov.start() 150 cov.start()
146 for case in cases: 151 for case in cases:
147 args[case] = get_args(case) 152 args[case] = get_args(case)
148 cov.stop() 153 cov.stop()
149 154
150 this_file = os.path.basename(__file__) 155 this_file = os.path.basename(__file__)
151 _, _, not_run, _ = cov.analysis(this_file) 156 _, _, not_run, _ = cov.analysis(this_file)
(...skipping 11 matching lines...) Expand all
163 if len(sys.argv) == 2 and sys.argv[1] == 'test': 168 if len(sys.argv) == 2 and sys.argv[1] == 'test':
164 self_test() 169 self_test()
165 sys.exit(0) 170 sys.exit(0)
166 171
167 if len(sys.argv) != 3: 172 if len(sys.argv) != 3:
168 print usage 173 print usage
169 sys.exit(1) 174 sys.exit(1)
170 175
171 with open(sys.argv[1], 'w') as out: 176 with open(sys.argv[1], 'w') as out:
172 json.dump(get_args(sys.argv[2]), out) 177 json.dump(get_args(sys.argv[2]), out)
OLDNEW
« no previous file with comments | « tools/nanobench_flags.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698