OLD | NEW |
1 #!/usr/bin/python2.6 | 1 #!/usr/bin/python2.6 |
2 # Copyright 2011 Google Inc. | 2 # Copyright 2011 Google Inc. |
3 # | 3 # |
4 # Licensed under the Apache License, Version 2.0 (the "License"); | 4 # Licensed under the Apache License, Version 2.0 (the "License"); |
5 # you may not use this file except in compliance with the License. | 5 # you may not use this file except in compliance with the License. |
6 # You may obtain a copy of the License at | 6 # You may obtain a copy of the License at |
7 # | 7 # |
8 # http://www.apache.org/licenses/LICENSE-2.0 | 8 # http://www.apache.org/licenses/LICENSE-2.0 |
9 # | 9 # |
10 # Unless required by applicable law or agreed to in writing, software | 10 # Unless required by applicable law or agreed to in writing, software |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 benchmark_runner = runner.BenchmarkRunner(chrome_exe, | 78 benchmark_runner = runner.BenchmarkRunner(chrome_exe, |
79 opts.profile, | 79 opts.profile, |
80 opts.preload, | 80 opts.preload, |
81 opts.cold_start, | 81 opts.cold_start, |
82 opts.prefetch, | 82 opts.prefetch, |
83 opts.keep_temp_dirs) | 83 opts.keep_temp_dirs) |
84 try: | 84 try: |
85 benchmark_runner.Run(opts.iterations) | 85 benchmark_runner.Run(opts.iterations) |
86 except: | 86 except: |
87 logging.exception('Exception in Run.') | 87 logging.exception('Exception in Run.') |
| 88 return 1 |
88 | 89 |
89 return 0 | 90 return 0 |
90 | 91 |
91 | 92 |
92 if __name__ == '__main__': | 93 if __name__ == '__main__': |
93 sys.exit(main()) | 94 sys.exit(main()) |
OLD | NEW |