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 26 matching lines...) Expand all Loading... |
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-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', | 41 'Perf-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', |
42 ], | 42 ], |
43 }, | 43 }, |
44 } | 44 } |
45 | 45 |
46 | 46 |
47 import time | 47 import calendar |
48 | 48 |
49 | 49 |
50 def nanobench_flags(bot): | 50 def nanobench_flags(bot): |
51 args = ['--pre_log'] | 51 args = ['--pre_log'] |
52 | 52 |
53 if 'GPU' in bot: | 53 if 'GPU' in bot: |
54 args.append('--images') | 54 args.append('--images') |
55 args.extend(['--gpuStatsDump', 'true']) | 55 args.extend(['--gpuStatsDump', 'true']) |
56 | 56 |
57 if 'Android' in bot and 'GPU' in bot: | 57 if 'Android' in bot and 'GPU' in bot: |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 if api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU': | 199 if api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU': |
200 skip_flag = '--nogpu' | 200 skip_flag = '--nogpu' |
201 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU': | 201 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU': |
202 skip_flag = '--nocpu' | 202 skip_flag = '--nocpu' |
203 if skip_flag: | 203 if skip_flag: |
204 args.append(skip_flag) | 204 args.append(skip_flag) |
205 args.extend(nanobench_flags(api.vars.builder_name)) | 205 args.extend(nanobench_flags(api.vars.builder_name)) |
206 | 206 |
207 if api.vars.upload_perf_results: | 207 if api.vars.upload_perf_results: |
208 now = api.time.utcnow() | 208 now = api.time.utcnow() |
209 ts = int(time.mktime(now.utctimetuple())) | 209 ts = int(calendar.timegm(now.utctimetuple())) |
210 json_path = api.flavor.device_path_join( | 210 json_path = api.flavor.device_path_join( |
211 api.flavor.device_dirs.perf_data_dir, | 211 api.flavor.device_dirs.perf_data_dir, |
212 'nanobench_%s_%d.json' % (api.vars.got_revision, ts)) | 212 'nanobench_%s_%d.json' % (api.vars.got_revision, ts)) |
213 args.extend(['--outResultsFile', json_path]) | 213 args.extend(['--outResultsFile', json_path]) |
214 args.extend(properties) | 214 args.extend(properties) |
215 | 215 |
216 keys_blacklist = ['configuration', 'role', 'is_trybot'] | 216 keys_blacklist = ['configuration', 'role', 'is_trybot'] |
217 args.append('--key') | 217 args.append('--key') |
218 for k in sorted(api.vars.builder_cfg.keys()): | 218 for k in sorted(api.vars.builder_cfg.keys()): |
219 if not k in keys_blacklist: | 219 if not k in keys_blacklist: |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 buildername='Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-' + | 320 buildername='Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-' + |
321 'Valgrind-Trybot', | 321 'Valgrind-Trybot', |
322 mastername='client.skia', | 322 mastername='client.skia', |
323 slavename='skiabot-linux-swarm-000', | 323 slavename='skiabot-linux-swarm-000', |
324 buildnumber=5, | 324 buildnumber=5, |
325 path_config='kitchen', | 325 path_config='kitchen', |
326 swarm_out_dir='[SWARM_OUT_DIR]', | 326 swarm_out_dir='[SWARM_OUT_DIR]', |
327 revision='abc123', | 327 revision='abc123', |
328 **gerrit_kwargs) | 328 **gerrit_kwargs) |
329 ) | 329 ) |
OLD | NEW |