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

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

Issue 2560183002: Adding android_devices dimension to newly swarmed android perf device. (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 | « testing/buildbot/chromium.perf.fyi.json ('k') | 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 ('tracing_perftests', 1)] 133 ('tracing_perftests', 1)]
134 } 134 }
135 ], 135 ],
136 use_whitelist=True) 136 use_whitelist=True)
137 waterfall = add_tester( 137 waterfall = add_tester(
138 waterfall, 'Android Swarming N5X Tester', 138 waterfall, 'Android Swarming N5X Tester',
139 'fyi-android-swarming-n5x', 'android', 139 'fyi-android-swarming-n5x', 'android',
140 swarming=[ 140 swarming=[
141 { 141 {
142 'os': 'Android', 142 'os': 'Android',
143 'android_devices': '1',
143 'device_ids': [ 144 'device_ids': [
144 'build245-m4--device1', 'build245-m4--device2', 145 'build245-m4--device1', 'build245-m4--device2',
145 'build245-m4--device3', 'build245-m4--device4', 146 'build245-m4--device3', 'build245-m4--device4',
146 'build245-m4--device5', 'build245-m4--device6', 147 'build245-m4--device5', 'build245-m4--device6',
147 'build245-m4--device7' 148 'build245-m4--device7'
148 ] 149 ]
149 } 150 }
150 ], 151 ],
151 use_whitelist=True) 152 use_whitelist=True)
152 return waterfall 153 return waterfall
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 474
474 475
475 def get_swarming_dimension(dimension, device_affinity): 476 def get_swarming_dimension(dimension, device_affinity):
476 complete_dimension = { 477 complete_dimension = {
477 'id': dimension['device_ids'][device_affinity], 478 'id': dimension['device_ids'][device_affinity],
478 'os': dimension['os'], 479 'os': dimension['os'],
479 'pool': 'Chrome-perf', 480 'pool': 'Chrome-perf',
480 } 481 }
481 if 'gpu' in dimension: 482 if 'gpu' in dimension:
482 complete_dimension['gpu'] = dimension['gpu'] 483 complete_dimension['gpu'] = dimension['gpu']
484 if 'android_devices' in dimension:
485 complete_dimension['android_devices'] = dimension['android_devices']
483 return complete_dimension 486 return complete_dimension
484 487
485 488
486 def generate_cplusplus_isolate_script_test(dimension): 489 def generate_cplusplus_isolate_script_test(dimension):
487 return [ 490 return [
488 generate_isolate_script_entry( 491 generate_isolate_script_entry(
489 [get_swarming_dimension(dimension, shard)], [], name, name) 492 [get_swarming_dimension(dimension, shard)], [], name, name)
490 for name, shard in dimension['perf_tests'] 493 for name, shard in dimension['perf_tests']
491 ] 494 ]
492 495
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 waterfall['name'] = 'chromium.perf' 717 waterfall['name'] = 'chromium.perf'
715 fyi_waterfall = get_fyi_waterfall_config() 718 fyi_waterfall = get_fyi_waterfall_config()
716 fyi_waterfall['name'] = 'chromium.perf.fyi' 719 fyi_waterfall['name'] = 'chromium.perf.fyi'
717 720
718 generate_all_tests(fyi_waterfall) 721 generate_all_tests(fyi_waterfall)
719 generate_all_tests(waterfall) 722 generate_all_tests(waterfall)
720 return 0 723 return 0
721 724
722 if __name__ == '__main__': 725 if __name__ == '__main__':
723 sys.exit(main()) 726 sys.exit(main())
OLDNEW
« no previous file with comments | « testing/buildbot/chromium.perf.fyi.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698