OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 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 """ Upload benchmark performance data results. """ | 6 """ Upload benchmark performance data results. """ |
7 | 7 |
8 import gzip | 8 import gzip |
9 import os | 9 import os |
10 import os.path | 10 import os.path |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 RE_FILE_SEARCH = re.compile( | 55 RE_FILE_SEARCH = re.compile( |
56 'nanobench_({})_[0-9]+\.json'.format(got_revision)) | 56 'nanobench_({})_[0-9]+\.json'.format(got_revision)) |
57 nanobench_name = None | 57 nanobench_name = None |
58 | 58 |
59 for file_name in file_list: | 59 for file_name in file_list: |
60 if RE_FILE_SEARCH.search(file_name): | 60 if RE_FILE_SEARCH.search(file_name): |
61 nanobench_name = file_name | 61 nanobench_name = file_name |
62 break | 62 break |
63 | 63 |
64 if nanobench_name: | 64 if nanobench_name: |
65 dest_gsbase = 'gs://chromium-skia-gm/' | 65 dest_gsbase = 'gs://chromium-skia-gm' |
66 nanobench_json_file = os.path.join(perf_data_dir, | 66 nanobench_json_file = os.path.join(perf_data_dir, |
67 nanobench_name) | 67 nanobench_name) |
68 _UploadJSONResults(builder_name, build_number, dest_gsbase, 'nano-json-v1', | 68 _UploadJSONResults(builder_name, build_number, dest_gsbase, 'nano-json-v1', |
69 nanobench_json_file, gsutil_path=gsutil_path, | 69 nanobench_json_file, gsutil_path=gsutil_path, |
70 issue_number=issue_number) | 70 issue_number=issue_number) |
71 | 71 |
72 | 72 |
73 if __name__ == '__main__': | 73 if __name__ == '__main__': |
74 main(*sys.argv[1:]) | 74 main(*sys.argv[1:]) |
75 | 75 |
OLD | NEW |