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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 swarming=[ | 373 swarming=[ |
374 { | 374 { |
375 'gpu': '8086:0d26', | 375 'gpu': '8086:0d26', |
376 'os': 'Mac-10.11', | 376 'os': 'Mac-10.11', |
377 'device_ids': [ | 377 'device_ids': [ |
378 'build4-b1', 'build5-b1', 'build6-b1', 'build7-b1', 'build8-b1' | 378 'build4-b1', 'build5-b1', 'build6-b1', 'build7-b1', 'build8-b1' |
379 ] | 379 ] |
380 } | 380 } |
381 ]) | 381 ]) |
382 waterfall = add_tester( | 382 waterfall = add_tester( |
383 waterfall, 'Mac HDD Perf', 'chromium-rel-mac-hdd', 'mac', | |
384 swarming=[ | |
385 { | |
386 'gpu': '10de:08a4', | |
387 'os': 'Mac-10.10', | |
388 'device_ids': [ | |
389 'build24-b1', 'build25-b1', | |
390 'build26-b1', 'build27-b1', 'build28-b1' | |
391 ] | |
392 } | |
393 ]) | |
394 waterfall = add_tester( | |
395 waterfall, 'Mac Pro 10.11 Perf', | 383 waterfall, 'Mac Pro 10.11 Perf', |
396 'chromium-rel-mac11-pro', 'mac', | 384 'chromium-rel-mac11-pro', 'mac', |
397 swarming=[ | 385 swarming=[ |
398 { | 386 { |
399 'gpu': '1002:6821', | 387 'gpu': '1002:6821', |
400 'os': 'Mac-10.11', | 388 'os': 'Mac-10.11', |
401 'device_ids': [ | 389 'device_ids': [ |
402 'build128-b1', 'build129-b1', | 390 'build128-b1', 'build129-b1', |
403 'build130-b1', 'build131-b1', 'build132-b1' | 391 'build130-b1', 'build131-b1', 'build132-b1' |
404 ] | 392 ] |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 'skpicture_printer', | 590 'skpicture_printer', |
603 'skpicture_printer_ct', | 591 'skpicture_printer_ct', |
604 ] | 592 ] |
605 | 593 |
606 # Certain swarming bots are not sharding correctly with the new device affinity | 594 # Certain swarming bots are not sharding correctly with the new device affinity |
607 # algorithm. Reverting to legacy algorithm to try and get them to complete. | 595 # algorithm. Reverting to legacy algorithm to try and get them to complete. |
608 # See crbug.com/670284 | 596 # See crbug.com/670284 |
609 LEGACY_DEVICE_AFFIINITY_ALGORITHM = [ | 597 LEGACY_DEVICE_AFFIINITY_ALGORITHM = [ |
610 'Win Zenbook Perf', | 598 'Win Zenbook Perf', |
611 'Win 10 High-DPI Perf', | 599 'Win 10 High-DPI Perf', |
612 'Mac HDD Perf', | |
613 ] | 600 ] |
614 | 601 |
615 def current_benchmarks(use_whitelist): | 602 def current_benchmarks(use_whitelist): |
616 benchmarks_dir = os.path.join(src_dir(), 'tools', 'perf', 'benchmarks') | 603 benchmarks_dir = os.path.join(src_dir(), 'tools', 'perf', 'benchmarks') |
617 top_level_dir = os.path.dirname(benchmarks_dir) | 604 top_level_dir = os.path.dirname(benchmarks_dir) |
618 | 605 |
619 all_benchmarks = discover.DiscoverClasses( | 606 all_benchmarks = discover.DiscoverClasses( |
620 benchmarks_dir, top_level_dir, benchmark_module.Benchmark, | 607 benchmarks_dir, top_level_dir, benchmark_module.Benchmark, |
621 index_by_class_name=True).values() | 608 index_by_class_name=True).values() |
622 # Remove all blacklisted benchmarks | 609 # Remove all blacklisted benchmarks |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 waterfall['name'] = 'chromium.perf' | 739 waterfall['name'] = 'chromium.perf' |
753 fyi_waterfall = get_fyi_waterfall_config() | 740 fyi_waterfall = get_fyi_waterfall_config() |
754 fyi_waterfall['name'] = 'chromium.perf.fyi' | 741 fyi_waterfall['name'] = 'chromium.perf.fyi' |
755 | 742 |
756 generate_all_tests(fyi_waterfall) | 743 generate_all_tests(fyi_waterfall) |
757 generate_all_tests(waterfall) | 744 generate_all_tests(waterfall) |
758 return 0 | 745 return 0 |
759 | 746 |
760 if __name__ == '__main__': | 747 if __name__ == '__main__': |
761 sys.exit(main()) | 748 sys.exit(main()) |
OLD | NEW |