| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
| 5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
| 6 | 6 |
| 7 import datetime | 7 import datetime |
| 8 import math | 8 import math |
| 9 import optparse | 9 import optparse |
| 10 import os | 10 import os |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 | 633 |
| 634 for browser in self.test.platform_list: | 634 for browser in self.test.platform_list: |
| 635 for version in self.test.versions: | 635 for version in self.test.versions: |
| 636 if not self.test.IsValidCombination(browser, version): | 636 if not self.test.IsValidCombination(browser, version): |
| 637 continue | 637 continue |
| 638 self.test.trace_file = os.path.join(TOP_LEVEL_DIR, | 638 self.test.trace_file = os.path.join(TOP_LEVEL_DIR, |
| 639 'tools', 'testing', 'perf_testing', self.test.result_folder_name, | 639 'tools', 'testing', 'perf_testing', self.test.result_folder_name, |
| 640 'perf-%s-%s-%s' % (self.test.cur_time, browser, version)) | 640 'perf-%s-%s-%s' % (self.test.cur_time, browser, version)) |
| 641 self.AddSvnRevisionToTrace(self.test.trace_file, browser) | 641 self.AddSvnRevisionToTrace(self.test.trace_file, browser) |
| 642 file_path = os.path.join( | 642 file_path = os.path.join( |
| 643 os.getcwd(), 'internal', 'browserBenchmarks', | 643 os.getcwd(), 'internal', 'browserBenchmarks', 'V8vDart', |
| 644 'benchmark_page_%s.html' % version) | 644 'V8vDart_page_%s.html' % version) |
| 645 self.test.test_runner.RunCmd( | 645 self.test.test_runner.RunCmd( |
| 646 ['python', os.path.join('tools', 'testing', 'run_selenium.py'), | 646 ['python', os.path.join('tools', 'testing', 'run_selenium.py'), |
| 647 '--out', file_path, '--browser', browser, | 647 '--out', file_path, '--browser', browser, |
| 648 '--timeout', '600', '--mode', 'perf'], self.test.trace_file, | 648 '--timeout', '600', '--mode', 'perf'], self.test.trace_file, |
| 649 append=True) | 649 append=True) |
| 650 | 650 |
| 651 class CommonBrowserFileProcessor(Processor): | 651 class CommonBrowserFileProcessor(Processor): |
| 652 | 652 |
| 653 def ProcessFile(self, afile, should_post_file): | 653 def ProcessFile(self, afile, should_post_file): |
| 654 """Comb through the html to find the performance results. | 654 """Comb through the html to find the performance results. |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1117 else: | 1117 else: |
| 1118 if runner.backfill: | 1118 if runner.backfill: |
| 1119 results_set = FillInBackHistory(results_set, runner) | 1119 results_set = FillInBackHistory(results_set, runner) |
| 1120 else: | 1120 else: |
| 1121 time.sleep(200) | 1121 time.sleep(200) |
| 1122 else: | 1122 else: |
| 1123 runner.RunTestSequence() | 1123 runner.RunTestSequence() |
| 1124 | 1124 |
| 1125 if __name__ == '__main__': | 1125 if __name__ == '__main__': |
| 1126 main() | 1126 main() |
| OLD | NEW |