OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 the V8 project authors. All rights reserved. | 2 # Copyright 2014 the V8 project 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 """ | 6 """ |
7 Performance runner for d8. | 7 Performance runner for d8. |
8 | 8 |
9 Call e.g. with tools/run-perf.py --arch ia32 some_suite.json | 9 Call e.g. with tools/run-perf.py --arch ia32 some_suite.json |
10 | 10 |
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
724 "natives_blob.bin", | 724 "natives_blob.bin", |
725 target_dir, | 725 target_dir, |
726 skip_if_missing=True, | 726 skip_if_missing=True, |
727 ) | 727 ) |
728 self._PushFile( | 728 self._PushFile( |
729 shell_dir, | 729 shell_dir, |
730 "snapshot_blob.bin", | 730 "snapshot_blob.bin", |
731 target_dir, | 731 target_dir, |
732 skip_if_missing=True, | 732 skip_if_missing=True, |
733 ) | 733 ) |
| 734 self._PushFile( |
| 735 shell_dir, |
| 736 "snapshot_blob_ignition.bin", |
| 737 target_dir, |
| 738 skip_if_missing=True, |
| 739 ) |
734 | 740 |
735 def PreTests(self, node, path): | 741 def PreTests(self, node, path): |
736 suite_dir = os.path.abspath(os.path.dirname(path)) | 742 suite_dir = os.path.abspath(os.path.dirname(path)) |
737 if node.path: | 743 if node.path: |
738 bench_rel = os.path.normpath(os.path.join(*node.path)) | 744 bench_rel = os.path.normpath(os.path.join(*node.path)) |
739 bench_abs = os.path.join(suite_dir, bench_rel) | 745 bench_abs = os.path.join(suite_dir, bench_rel) |
740 else: | 746 else: |
741 bench_rel = "." | 747 bench_rel = "." |
742 bench_abs = suite_dir | 748 bench_abs = suite_dir |
743 | 749 |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
919 | 925 |
920 if options.json_test_results_no_patch: | 926 if options.json_test_results_no_patch: |
921 results_no_patch.WriteToFile(options.json_test_results_no_patch) | 927 results_no_patch.WriteToFile(options.json_test_results_no_patch) |
922 else: # pragma: no cover | 928 else: # pragma: no cover |
923 print results_no_patch | 929 print results_no_patch |
924 | 930 |
925 return min(1, len(results.errors)) | 931 return min(1, len(results.errors)) |
926 | 932 |
927 if __name__ == "__main__": # pragma: no cover | 933 if __name__ == "__main__": # pragma: no cover |
928 sys.exit(Main(sys.argv[1:])) | 934 sys.exit(Main(sys.argv[1:])) |
OLD | NEW |