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

Side by Side Diff: tools/perf/generate_perf_json.py

Issue 2516413002: Add logic to disable default gpu dimension. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2016 The Chromium Authors. All rights reserved. 2 # Copyright 2016 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Script to generate chromium.perf.json and chromium.perf.fyi.json in 6 """Script to generate chromium.perf.json and chromium.perf.fyi.json in
7 the src/testing/buildbot directory. Maintaining these files by hand is 7 the src/testing/buildbot directory. Maintaining these files by hand is
8 too unwieldy. 8 too unwieldy.
9 """ 9 """
10 10
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 438
439 439
440 def get_swarming_dimension(dimension, device_affinity): 440 def get_swarming_dimension(dimension, device_affinity):
441 complete_dimension = { 441 complete_dimension = {
442 'id': dimension['device_ids'][device_affinity], 442 'id': dimension['device_ids'][device_affinity],
443 'os': dimension['os'], 443 'os': dimension['os'],
444 'pool': 'Chrome-perf', 444 'pool': 'Chrome-perf',
445 } 445 }
446 if 'gpu' in dimension: 446 if 'gpu' in dimension:
447 complete_dimension['gpu'] = dimension['gpu'] 447 complete_dimension['gpu'] = dimension['gpu']
448 else:
449 complete_dimension['gpu'] = None
448 return complete_dimension 450 return complete_dimension
449 451
450 452
451 def generate_cplusplus_isolate_script_test(dimension): 453 def generate_cplusplus_isolate_script_test(dimension):
452 return [ 454 return [
453 generate_isolate_script_entry( 455 generate_isolate_script_entry(
454 [get_swarming_dimension(dimension, shard)], [], name, name) 456 [get_swarming_dimension(dimension, shard)], [], name, name)
455 for name, shard in dimension['perf_tests'] 457 for name, shard in dimension['perf_tests']
456 ] 458 ]
457 459
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 waterfall['name'] = 'chromium.perf' 664 waterfall['name'] = 'chromium.perf'
663 fyi_waterfall = get_fyi_waterfall_config() 665 fyi_waterfall = get_fyi_waterfall_config()
664 fyi_waterfall['name'] = 'chromium.perf.fyi' 666 fyi_waterfall['name'] = 'chromium.perf.fyi'
665 667
666 generate_all_tests(fyi_waterfall) 668 generate_all_tests(fyi_waterfall)
667 generate_all_tests(waterfall) 669 generate_all_tests(waterfall)
668 return 0 670 return 0
669 671
670 if __name__ == '__main__': 672 if __name__ == '__main__':
671 sys.exit(main()) 673 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698