OLD | NEW |
---|---|
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 | 5 |
6 # Recipe module for Skia Swarming perf. | 6 # Recipe module for Skia Swarming perf. |
7 | 7 |
8 | 8 |
9 DEPS = [ | 9 DEPS = [ |
10 'build/file', | 10 'build/file', |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
183 ]) | 183 ]) |
184 | 184 |
185 target = 'nanobench' | 185 target = 'nanobench' |
186 if 'VisualBench' in api.vars.builder_name: | 186 if 'VisualBench' in api.vars.builder_name: |
187 target = 'visualbench' | 187 target = 'visualbench' |
188 args = [ | 188 args = [ |
189 target, | 189 target, |
190 '--undefok', # This helps branches that may not know new flags. | 190 '--undefok', # This helps branches that may not know new flags. |
191 '-i', api.flavor.device_dirs.resource_dir, | 191 '-i', api.flavor.device_dirs.resource_dir, |
192 '--skps', api.flavor.device_dirs.skp_dir, | 192 '--skps', api.flavor.device_dirs.skp_dir, |
193 '--svgs', api.flavor.device_dirs.svg_dir, | |
194 '--images', api.flavor.device_path_join( | 193 '--images', api.flavor.device_path_join( |
195 api.flavor.device_dirs.images_dir, 'nanobench'), | 194 api.flavor.device_dirs.images_dir, 'nanobench'), |
196 ] | 195 ] |
197 | 196 |
197 # Do not run svgs on Valgrind. | |
198 if 'Valgrind' not in api.vars.builder_name: | |
199 args.extend(['--svgs', api.flavor.device_dirs.svg_dir]) | |
borenet
2016/10/06 18:40:10
Nit: 2-space indent.
stephana
2016/10/06 18:57:19
Done.
| |
200 | |
198 skip_flag = None | 201 skip_flag = None |
199 if api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU': | 202 if api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU': |
200 skip_flag = '--nogpu' | 203 skip_flag = '--nogpu' |
201 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU': | 204 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU': |
202 skip_flag = '--nocpu' | 205 skip_flag = '--nocpu' |
203 if skip_flag: | 206 if skip_flag: |
204 args.append(skip_flag) | 207 args.append(skip_flag) |
205 args.extend(nanobench_flags(api.vars.builder_name)) | 208 args.extend(nanobench_flags(api.vars.builder_name)) |
206 | 209 |
207 if api.vars.upload_perf_results: | 210 if api.vars.upload_perf_results: |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
320 buildername='Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-' + | 323 buildername='Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-' + |
321 'Valgrind-Trybot', | 324 'Valgrind-Trybot', |
322 mastername='client.skia', | 325 mastername='client.skia', |
323 slavename='skiabot-linux-swarm-000', | 326 slavename='skiabot-linux-swarm-000', |
324 buildnumber=5, | 327 buildnumber=5, |
325 path_config='kitchen', | 328 path_config='kitchen', |
326 swarm_out_dir='[SWARM_OUT_DIR]', | 329 swarm_out_dir='[SWARM_OUT_DIR]', |
327 revision='abc123', | 330 revision='abc123', |
328 **gerrit_kwargs) | 331 **gerrit_kwargs) |
329 ) | 332 ) |
OLD | NEW |