| 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 # pylint: disable=too-many-lines | 6 # pylint: disable=too-many-lines |
| 7 | 7 |
| 8 """Script to generate chromium.perf.json and chromium.perf.fyi.json in | 8 """Script to generate chromium.perf.json and chromium.perf.fyi.json in |
| 9 the src/testing/buildbot directory and benchmark.csv in the src/tools/perf | 9 the src/testing/buildbot directory and benchmark.csv in the src/tools/perf |
| 10 directory. Maintaining these files by hand is too unwieldy. | 10 directory. Maintaining these files by hand is too unwieldy. |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 'pool': 'Chrome-perf', | 512 'pool': 'Chrome-perf', |
| 513 'device_ids': [ | 513 'device_ids': [ |
| 514 'build148-m1', 'build149-m1', | 514 'build148-m1', 'build149-m1', |
| 515 'build150-m1', 'build151-m1', 'build152-m1' | 515 'build150-m1', 'build151-m1', 'build152-m1' |
| 516 ], | 516 ], |
| 517 'perf_tests': [ | 517 'perf_tests': [ |
| 518 # crbug.com/698831 | 518 # crbug.com/698831 |
| 519 # ('cc_perftests', 2), | 519 # ('cc_perftests', 2), |
| 520 # crbug.com/709274 | 520 # crbug.com/709274 |
| 521 # ('load_library_perf_tests', 2), | 521 # ('load_library_perf_tests', 2), |
| 522 ('net_perftests', 'build150-m1'), |
| 522 ('tracing_perftests', 'build150-m1'), | 523 ('tracing_perftests', 'build150-m1'), |
| 523 ('media_perftests', 'build151-m1')] | 524 ('media_perftests', 'build151-m1')] |
| 524 } | 525 } |
| 525 ]) | 526 ]) |
| 526 | 527 |
| 527 return waterfall | 528 return waterfall |
| 528 | 529 |
| 529 | 530 |
| 530 def generate_isolate_script_entry(swarming_dimensions, test_args, | 531 def generate_isolate_script_entry(swarming_dimensions, test_args, |
| 531 isolate_name, step_name, ignore_task_failure, | 532 isolate_name, step_name, ignore_task_failure, |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 815 get_all_waterfall_benchmarks_metadata()) | 816 get_all_waterfall_benchmarks_metadata()) |
| 816 | 817 |
| 817 | 818 |
| 818 # not_scheduled means this test is not scheduled on any of the chromium.perf | 819 # not_scheduled means this test is not scheduled on any of the chromium.perf |
| 819 # waterfalls. Right now, all the below benchmarks are scheduled, but some other | 820 # waterfalls. Right now, all the below benchmarks are scheduled, but some other |
| 820 # benchmarks are not scheduled, because they're disabled on all platforms. | 821 # benchmarks are not scheduled, because they're disabled on all platforms. |
| 821 BenchmarkMetadata = collections.namedtuple( | 822 BenchmarkMetadata = collections.namedtuple( |
| 822 'BenchmarkMetadata', 'emails component not_scheduled') | 823 'BenchmarkMetadata', 'emails component not_scheduled') |
| 823 NON_TELEMETRY_BENCHMARKS = { | 824 NON_TELEMETRY_BENCHMARKS = { |
| 824 'angle_perftests': BenchmarkMetadata('jmadill@chromium.org', None, False), | 825 'angle_perftests': BenchmarkMetadata('jmadill@chromium.org', None, False), |
| 826 'net_perftests': BenchmarkMetadata('xunjieli@chromium.org', None, False), |
| 825 'cc_perftests': BenchmarkMetadata('enne@chromium.org', None, False), | 827 'cc_perftests': BenchmarkMetadata('enne@chromium.org', None, False), |
| 826 'gpu_perftests': BenchmarkMetadata('reveman@chromium.org', None, False), | 828 'gpu_perftests': BenchmarkMetadata('reveman@chromium.org', None, False), |
| 827 'tracing_perftests': BenchmarkMetadata( | 829 'tracing_perftests': BenchmarkMetadata( |
| 828 'kkraynov@chromium.org, primiano@chromium.org', None, False), | 830 'kkraynov@chromium.org, primiano@chromium.org', None, False), |
| 829 'load_library_perf_tests': BenchmarkMetadata(None, None, False), | 831 'load_library_perf_tests': BenchmarkMetadata(None, None, False), |
| 830 'media_perftests': BenchmarkMetadata('crouleau@chromium.org', None, False), | 832 'media_perftests': BenchmarkMetadata('crouleau@chromium.org', None, False), |
| 831 'performance_browser_tests': BenchmarkMetadata( | 833 'performance_browser_tests': BenchmarkMetadata( |
| 832 'miu@chromium.org', None, False) | 834 'miu@chromium.org', None, False) |
| 833 } | 835 } |
| 834 | 836 |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 983 return 0 | 985 return 0 |
| 984 else: | 986 else: |
| 985 print ('The perf JSON config files are not up-to-date. Please run %s ' | 987 print ('The perf JSON config files are not up-to-date. Please run %s ' |
| 986 'without --validate-only flag to update the perf JSON ' | 988 'without --validate-only flag to update the perf JSON ' |
| 987 'configs and benchmark.csv.') % sys.argv[0] | 989 'configs and benchmark.csv.') % sys.argv[0] |
| 988 return 1 | 990 return 1 |
| 989 else: | 991 else: |
| 990 update_all_tests([fyi_waterfall, waterfall]) | 992 update_all_tests([fyi_waterfall, waterfall]) |
| 991 update_benchmark_csv() | 993 update_benchmark_csv() |
| 992 return 0 | 994 return 0 |
| OLD | NEW |