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

Side by Side Diff: infra/bots/recipes/swarm_perf.py

Issue 2343903002: Run SVGs through nanobench on all Perf bots (Closed)
Patch Set: Add test code Created 4 years, 3 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
OLDNEW
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 args = ['--pre_log'] 46 args = ['--pre_log']
47 47
48 if 'GPU' in bot: 48 if 'GPU' in bot:
49 args.append('--images') 49 args.append('--images')
50 args.extend(['--gpuStatsDump', 'true']) 50 args.extend(['--gpuStatsDump', 'true'])
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 if 'Android' in bot and 'GPU' in bot:
57 # Add additional scales for Android GPU bots (mainly for SVGs).
58 args.extend(['2.0', '4.0'])
56 59
57 if 'iOS' in bot: 60 if 'iOS' in bot:
58 args.extend(['--skps', 'ignore_skps']) 61 args.extend(['--skps', 'ignore_skps'])
59 62
60 config = ['8888', 'gpu', 'nonrendering', 'angle', 'hwui' ] 63 config = ['8888', 'gpu', 'nonrendering', 'angle', 'hwui' ]
61 if 'AndroidOne' not in bot: 64 if 'AndroidOne' not in bot:
62 config += [ 'f16', 'srgb' ] 65 config += [ 'f16', 'srgb' ]
63 if '-GCE-' in bot: 66 if '-GCE-' in bot:
64 config += [ '565' ] 67 config += [ '565' ]
65 # The S4 crashes and the NP produces a long error stream when we run with 68 # The S4 crashes and the NP produces a long error stream when we run with
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 ]) 184 ])
182 185
183 target = 'nanobench' 186 target = 'nanobench'
184 if 'VisualBench' in api.vars.builder_name: 187 if 'VisualBench' in api.vars.builder_name:
185 target = 'visualbench' 188 target = 'visualbench'
186 args = [ 189 args = [
187 target, 190 target,
188 '--undefok', # This helps branches that may not know new flags. 191 '--undefok', # This helps branches that may not know new flags.
189 '-i', api.flavor.device_dirs.resource_dir, 192 '-i', api.flavor.device_dirs.resource_dir,
190 '--skps', api.flavor.device_dirs.skp_dir, 193 '--skps', api.flavor.device_dirs.skp_dir,
194 '--svgs', api.flavor.device_dirs.svg_dir,
191 '--images', api.flavor.device_path_join( 195 '--images', api.flavor.device_path_join(
192 api.flavor.device_dirs.images_dir, 'nanobench'), 196 api.flavor.device_dirs.images_dir, 'nanobench'),
193 ] 197 ]
194 198
195 skip_flag = None 199 skip_flag = None
196 if api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU': 200 if api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU':
197 skip_flag = '--nogpu' 201 skip_flag = '--nogpu'
198 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU': 202 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU':
199 skip_flag = '--nocpu' 203 skip_flag = '--nocpu'
200 if skip_flag: 204 if skip_flag:
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 buildername='Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-' + 351 buildername='Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-' +
348 'Valgrind-Trybot', 352 'Valgrind-Trybot',
349 mastername='client.skia', 353 mastername='client.skia',
350 slavename='skiabot-linux-swarm-000', 354 slavename='skiabot-linux-swarm-000',
351 buildnumber=5, 355 buildnumber=5,
352 path_config='kitchen', 356 path_config='kitchen',
353 swarm_out_dir='[SWARM_OUT_DIR]', 357 swarm_out_dir='[SWARM_OUT_DIR]',
354 revision='abc123', 358 revision='abc123',
355 **gerrit_kwargs) 359 **gerrit_kwargs)
356 ) 360 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698