| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 106 import sys | 106 import sys | 
| 107 | 107 | 
| 108 from testrunner.local import commands | 108 from testrunner.local import commands | 
| 109 from testrunner.local import utils | 109 from testrunner.local import utils | 
| 110 | 110 | 
| 111 ARCH_GUESS = utils.DefaultArch() | 111 ARCH_GUESS = utils.DefaultArch() | 
| 112 SUPPORTED_ARCHS = ["arm", | 112 SUPPORTED_ARCHS = ["arm", | 
| 113                    "ia32", | 113                    "ia32", | 
| 114                    "mips", | 114                    "mips", | 
| 115                    "mipsel", | 115                    "mipsel", | 
| 116                    "nacl_ia32", |  | 
| 117                    "nacl_x64", |  | 
| 118                    "x64", | 116                    "x64", | 
| 119                    "arm64"] | 117                    "arm64"] | 
| 120 | 118 | 
| 121 GENERIC_RESULTS_RE = re.compile(r"^RESULT ([^:]+): ([^=]+)= ([^ ]+) ([^ ]*)$") | 119 GENERIC_RESULTS_RE = re.compile(r"^RESULT ([^:]+): ([^=]+)= ([^ ]+) ([^ ]*)$") | 
| 122 RESULT_STDDEV_RE = re.compile(r"^\{([^\}]+)\}$") | 120 RESULT_STDDEV_RE = re.compile(r"^\{([^\}]+)\}$") | 
| 123 RESULT_LIST_RE = re.compile(r"^\[([^\]]+)\]$") | 121 RESULT_LIST_RE = re.compile(r"^\[([^\]]+)\]$") | 
| 124 TOOLS_BASE = os.path.abspath(os.path.dirname(__file__)) | 122 TOOLS_BASE = os.path.abspath(os.path.dirname(__file__)) | 
| 125 | 123 | 
| 126 | 124 | 
| 127 def LoadAndroidBuildTools(path):  # pragma: no cover | 125 def LoadAndroidBuildTools(path):  # pragma: no cover | 
| (...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1074 | 1072 | 
| 1075   if options.json_test_results_no_patch: | 1073   if options.json_test_results_no_patch: | 
| 1076     results_no_patch.WriteToFile(options.json_test_results_no_patch) | 1074     results_no_patch.WriteToFile(options.json_test_results_no_patch) | 
| 1077   else:  # pragma: no cover | 1075   else:  # pragma: no cover | 
| 1078     print results_no_patch | 1076     print results_no_patch | 
| 1079 | 1077 | 
| 1080   return min(1, len(results.errors)) | 1078   return min(1, len(results.errors)) | 
| 1081 | 1079 | 
| 1082 if __name__ == "__main__":  # pragma: no cover | 1080 if __name__ == "__main__":  # pragma: no cover | 
| 1083   sys.exit(Main(sys.argv[1:])) | 1081   sys.exit(Main(sys.argv[1:])) | 
| OLD | NEW | 
|---|