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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 if 'Android' in bot and 'GPU' in bot: | 52 if 'Android' in bot and 'GPU' in bot: |
53 args.extend(['--useThermalManager', '1,1,10,1000']) | 53 args.extend(['--useThermalManager', '1,1,10,1000']) |
54 | 54 |
55 args.extend(['--scales', '1.0', '1.1']) | 55 args.extend(['--scales', '1.0', '1.1']) |
56 | 56 |
57 if 'iOS' in bot: | 57 if 'iOS' in bot: |
58 args.extend(['--skps', 'ignore_skps']) | 58 args.extend(['--skps', 'ignore_skps']) |
59 | 59 |
60 config = ['565', '8888', 'gpu', 'nonrendering', 'angle', 'hwui' ] | 60 config = ['565', '8888', 'gpu', 'nonrendering', 'angle', 'hwui' ] |
61 config += [ 'f16', 'srgb' ] | 61 if 'AndroidOne' not in bot: |
| 62 config += [ 'f16', 'srgb' ] |
62 # The S4 crashes and the NP produces a long error stream when we run with | 63 # The S4 crashes and the NP produces a long error stream when we run with |
63 # MSAA. | 64 # MSAA. |
64 if ('GalaxyS4' not in bot and | 65 if ('GalaxyS4' not in bot and |
65 'NexusPlayer' not in bot): | 66 'NexusPlayer' not in bot): |
66 if 'Android' in bot: | 67 if 'Android' in bot: |
67 # The TegraX1 has a regular OpenGL implementation. We bench that instead | 68 # The TegraX1 has a regular OpenGL implementation. We bench that instead |
68 # of ES. | 69 # of ES. |
69 if 'TegraX1' in bot: | 70 if 'TegraX1' in bot: |
70 config.remove('gpu') | 71 config.remove('gpu') |
71 config.extend(['gl', 'glmsaa4', 'glnvpr4', 'glnvprdit4']) | 72 config.extend(['gl', 'glmsaa4', 'glnvpr4', 'glnvprdit4']) |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 # Copy results to swarming out dir. | 229 # Copy results to swarming out dir. |
229 if api.vars.upload_perf_results: | 230 if api.vars.upload_perf_results: |
230 api.file.makedirs('perf_dir', api.vars.perf_data_dir) | 231 api.file.makedirs('perf_dir', api.vars.perf_data_dir) |
231 api.flavor.copy_directory_contents_to_host( | 232 api.flavor.copy_directory_contents_to_host( |
232 api.flavor.device_dirs.perf_data_dir, | 233 api.flavor.device_dirs.perf_data_dir, |
233 api.vars.perf_data_dir) | 234 api.vars.perf_data_dir) |
234 | 235 |
235 | 236 |
236 def RunSteps(api): | 237 def RunSteps(api): |
237 api.core.setup() | 238 api.core.setup() |
238 api.flavor.install() | 239 try: |
239 perf_steps(api) | 240 api.flavor.install() |
240 api.flavor.cleanup_steps() | 241 perf_steps(api) |
| 242 finally: |
| 243 api.flavor.cleanup_steps() |
241 api.run.check_failure() | 244 api.run.check_failure() |
242 | 245 |
243 | 246 |
244 def GenTests(api): | 247 def GenTests(api): |
245 def AndroidTestData(builder): | 248 def AndroidTestData(builder): |
246 test_data = ( | 249 test_data = ( |
247 api.step_data( | 250 api.step_data( |
248 'get EXTERNAL_STORAGE dir', | 251 'get EXTERNAL_STORAGE dir', |
249 stdout=api.raw_io.output('/storage/emulated/legacy')) + | 252 stdout=api.raw_io.output('/storage/emulated/legacy')) + |
250 api.step_data( | 253 api.step_data( |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 buildername='Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-' + | 345 buildername='Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-' + |
343 'Valgrind-Trybot', | 346 'Valgrind-Trybot', |
344 mastername='client.skia', | 347 mastername='client.skia', |
345 slavename='skiabot-linux-swarm-000', | 348 slavename='skiabot-linux-swarm-000', |
346 buildnumber=5, | 349 buildnumber=5, |
347 path_config='kitchen', | 350 path_config='kitchen', |
348 swarm_out_dir='[SWARM_OUT_DIR]', | 351 swarm_out_dir='[SWARM_OUT_DIR]', |
349 revision='abc123', | 352 revision='abc123', |
350 **gerrit_kwargs) | 353 **gerrit_kwargs) |
351 ) | 354 ) |
OLD | NEW |