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 20 matching lines...) Expand all Loading... |
31 'Perf-Android-Clang-Nexus7-GPU-Tegra3-arm-Release-GN_Android', | 31 'Perf-Android-Clang-Nexus7-GPU-Tegra3-arm-Release-GN_Android', |
32 'Perf-Android-Clang-NexusPlayer-GPU-PowerVR-x86-Release-GN_Android', | 32 'Perf-Android-Clang-NexusPlayer-GPU-PowerVR-x86-Release-GN_Android', |
33 'Perf-Mac-Clang-MacMini6.2-CPU-AVX-x86_64-Release-GN', | 33 'Perf-Mac-Clang-MacMini6.2-CPU-AVX-x86_64-Release-GN', |
34 'Perf-Mac-Clang-MacMini6.2-GPU-HD4000-x86_64-Debug-CommandBuffer', | 34 'Perf-Mac-Clang-MacMini6.2-GPU-HD4000-x86_64-Debug-CommandBuffer', |
35 'Perf-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Release-GN', | 35 'Perf-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Release-GN', |
36 'Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', | 36 'Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', |
37 'Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-VisualBench', | 37 'Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-VisualBench', |
38 'Perf-Win-MSVC-GCE-CPU-AVX2-x86_64-Debug', | 38 'Perf-Win-MSVC-GCE-CPU-AVX2-x86_64-Debug', |
39 'Perf-Win-MSVC-GCE-CPU-AVX2-x86_64-Release', | 39 'Perf-Win-MSVC-GCE-CPU-AVX2-x86_64-Release', |
40 'Perf-Win8-MSVC-ShuttleB-GPU-HD4600-x86_64-Release-Trybot', | 40 'Perf-Win8-MSVC-ShuttleB-GPU-HD4600-x86_64-Release-Trybot', |
41 'Perf-Win8-MSVC-ShuttleB-GPU-GTX960-x86_64-Debug-ANGLE', | |
42 'Perf-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', | 41 'Perf-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', |
43 ], | 42 ], |
44 }, | 43 }, |
45 } | 44 } |
46 | 45 |
47 | 46 |
48 import time | 47 import time |
49 | 48 |
50 | 49 |
51 def nanobench_flags(bot): | 50 def nanobench_flags(bot): |
52 args = ['--pre_log'] | 51 args = ['--pre_log'] |
53 | 52 |
54 if 'GPU' in bot: | 53 if 'GPU' in bot: |
55 args.append('--images') | 54 args.append('--images') |
56 args.extend(['--gpuStatsDump', 'true']) | 55 args.extend(['--gpuStatsDump', 'true']) |
57 | 56 |
58 if 'Android' in bot and 'GPU' in bot: | 57 if 'Android' in bot and 'GPU' in bot: |
59 args.extend(['--useThermalManager', '1,1,10,1000']) | 58 args.extend(['--useThermalManager', '1,1,10,1000']) |
60 | 59 |
61 args.extend(['--scales', '1.0', '1.1']) | 60 args.extend(['--scales', '1.0', '1.1']) |
62 | 61 |
63 if 'iOS' in bot: | 62 if 'iOS' in bot: |
64 args.extend(['--skps', 'ignore_skps']) | 63 args.extend(['--skps', 'ignore_skps']) |
65 | 64 |
66 config = ['8888', 'gpu', 'nonrendering', 'hwui' ] | 65 config = ['8888', 'gpu', 'nonrendering', 'angle', 'hwui' ] |
67 if 'AndroidOne' not in bot: | 66 if 'AndroidOne' not in bot: |
68 config += [ 'f16', 'srgb' ] | 67 config += [ 'f16', 'srgb' ] |
69 if '-GCE-' in bot: | 68 if '-GCE-' in bot: |
70 config += [ '565' ] | 69 config += [ '565' ] |
71 # The S4 crashes and the NP produces a long error stream when we run with | 70 # The S4 crashes and the NP produces a long error stream when we run with |
72 # MSAA. | 71 # MSAA. |
73 if ('GalaxyS4' not in bot and | 72 if ('GalaxyS4' not in bot and |
74 'NexusPlayer' not in bot): | 73 'NexusPlayer' not in bot): |
75 if 'Android' in bot: | 74 if 'Android' in bot: |
76 # The TegraX1 has a regular OpenGL implementation. We bench that instead | 75 # The TegraX1 has a regular OpenGL implementation. We bench that instead |
(...skipping 12 matching lines...) Expand all Loading... |
89 elif 'TegraX1' in bot: | 88 elif 'TegraX1' in bot: |
90 config.extend(['glinst', 'glinst4']) | 89 config.extend(['glinst', 'glinst4']) |
91 elif 'MacMini6.2' in bot: | 90 elif 'MacMini6.2' in bot: |
92 config.extend(['glinst', 'glinst16']) | 91 config.extend(['glinst', 'glinst16']) |
93 | 92 |
94 if 'CommandBuffer' in bot: | 93 if 'CommandBuffer' in bot: |
95 config = ['commandbuffer'] | 94 config = ['commandbuffer'] |
96 if 'Vulkan' in bot: | 95 if 'Vulkan' in bot: |
97 config = ['vk'] | 96 config = ['vk'] |
98 | 97 |
99 if 'ANGLE' in bot: | |
100 config.extend(['angle_gl_es2', 'angle_d3d11_es2']) | |
101 | |
102 args.append('--config') | 98 args.append('--config') |
103 args.extend(config) | 99 args.extend(config) |
104 | 100 |
105 if 'Valgrind' in bot: | 101 if 'Valgrind' in bot: |
106 # Don't care about Valgrind performance. | 102 # Don't care about Valgrind performance. |
107 args.extend(['--loops', '1']) | 103 args.extend(['--loops', '1']) |
108 args.extend(['--samples', '1']) | 104 args.extend(['--samples', '1']) |
109 # Ensure that the bot framework does not think we have timed out. | 105 # Ensure that the bot framework does not think we have timed out. |
110 args.extend(['--keepAlive', 'true']) | 106 args.extend(['--keepAlive', 'true']) |
111 | 107 |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 buildername='Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-' + | 320 buildername='Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-' + |
325 'Valgrind-Trybot', | 321 'Valgrind-Trybot', |
326 mastername='client.skia', | 322 mastername='client.skia', |
327 slavename='skiabot-linux-swarm-000', | 323 slavename='skiabot-linux-swarm-000', |
328 buildnumber=5, | 324 buildnumber=5, |
329 path_config='kitchen', | 325 path_config='kitchen', |
330 swarm_out_dir='[SWARM_OUT_DIR]', | 326 swarm_out_dir='[SWARM_OUT_DIR]', |
331 revision='abc123', | 327 revision='abc123', |
332 **gerrit_kwargs) | 328 **gerrit_kwargs) |
333 ) | 329 ) |
OLD | NEW |