OLD | NEW |
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 'name': 'Android Nexus7v2 Perf', | 69 'name': 'Android Nexus7v2 Perf', |
70 'shards': [2] | 70 'shards': [2] |
71 }, | 71 }, |
72 { | 72 { |
73 'name': 'Android Nexus9 Perf', | 73 'name': 'Android Nexus9 Perf', |
74 'shards': [2] | 74 'shards': [2] |
75 }, | 75 }, |
76 ], | 76 ], |
77 } | 77 } |
78 }, | 78 }, |
| 79 { |
| 80 'args': [ |
| 81 'tracing_perftests', |
| 82 '--adb-path', |
| 83 'src/third_party/catapult/devil/bin/deps/linux2/x86_64/bin/adb', |
| 84 ], |
| 85 'name': 'tracing_perftests', |
| 86 'script': 'gtest_perf_test.py', |
| 87 'testers': { |
| 88 'chromium.perf': [ |
| 89 { |
| 90 'name': 'Android Nexus5 Perf', |
| 91 'shards': [2] |
| 92 }, |
| 93 { |
| 94 'name': 'Android Nexus6 Perf', |
| 95 'shards': [2] |
| 96 }, |
| 97 { |
| 98 'name': 'Android Nexus7v2 Perf', |
| 99 'shards': [2] |
| 100 }, |
| 101 { |
| 102 'name': 'Android Nexus9 Perf', |
| 103 'shards': [2] |
| 104 }, |
| 105 ] |
| 106 } |
| 107 }, |
79 ] | 108 ] |
80 | 109 |
81 | 110 |
82 def add_tester(waterfall, name, perf_id, platform, target_bits=64, | 111 def add_tester(waterfall, name, perf_id, platform, target_bits=64, |
83 num_host_shards=1, num_device_shards=1, swarming=None, | 112 num_host_shards=1, num_device_shards=1, swarming=None, |
84 use_whitelist=False): | 113 use_whitelist=False): |
85 del perf_id # this will be needed | 114 del perf_id # this will be needed |
86 waterfall['testers'][name] = { | 115 waterfall['testers'][name] = { |
87 'platform': platform, | 116 'platform': platform, |
88 'num_device_shards': num_device_shards, | 117 'num_device_shards': num_device_shards, |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 waterfall['name'] = 'chromium.perf' | 743 waterfall['name'] = 'chromium.perf' |
715 fyi_waterfall = get_fyi_waterfall_config() | 744 fyi_waterfall = get_fyi_waterfall_config() |
716 fyi_waterfall['name'] = 'chromium.perf.fyi' | 745 fyi_waterfall['name'] = 'chromium.perf.fyi' |
717 | 746 |
718 generate_all_tests(fyi_waterfall) | 747 generate_all_tests(fyi_waterfall) |
719 generate_all_tests(waterfall) | 748 generate_all_tests(waterfall) |
720 return 0 | 749 return 0 |
721 | 750 |
722 if __name__ == '__main__': | 751 if __name__ == '__main__': |
723 sys.exit(main()) | 752 sys.exit(main()) |
OLD | NEW |