| 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 try: | 9 try: |
| 10 from matplotlib.font_manager import FontProperties | 10 from matplotlib.font_manager import FontProperties |
| (...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 838 | 838 |
| 839 @staticmethod | 839 @staticmethod |
| 840 def name(): | 840 def name(): |
| 841 return 'dromaeo' | 841 return 'dromaeo' |
| 842 | 842 |
| 843 def is_valid_combination(self, browser, version): | 843 def is_valid_combination(self, browser, version): |
| 844 # TODO(vsm): This avoids a bug in 32-bit Chrome (dartium) | 844 # TODO(vsm): This avoids a bug in 32-bit Chrome (dartium) |
| 845 # running JS dromaeo. | 845 # running JS dromaeo. |
| 846 if browser == 'dartium' and version == 'js': | 846 if browser == 'dartium' and version == 'js': |
| 847 return False | 847 return False |
| 848 # dart:dom has been removed from Dartium. |
| 849 if browser == 'dartium' and 'dom' in version: |
| 850 return False |
| 848 # Only run dart2js on Chrome until we validate it elsewhere. | 851 # Only run dart2js on Chrome until we validate it elsewhere. |
| 849 if browser != 'chrome' and 'dart2js' in version: | 852 if browser != 'chrome' and 'dart2js' in version: |
| 850 return False | 853 return False |
| 851 return True | 854 return True |
| 852 | 855 |
| 853 class DromaeoPerfGrapher(RuntimePerfGrapher): | 856 class DromaeoPerfGrapher(RuntimePerfGrapher): |
| 854 def plot_results(self, png_filename): | 857 def plot_results(self, png_filename): |
| 855 self.plot_all_perf(png_filename) | 858 self.plot_all_perf(png_filename) |
| 856 self.plot_avg_perf('2' + png_filename) | 859 self.plot_avg_perf('2' + png_filename) |
| 857 self.plot_avg_perf('3' + png_filename, ['chrome', 'dartium'], | 860 self.plot_avg_perf('3' + png_filename, ['chrome', 'dartium'], |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1308 while True: | 1311 while True: |
| 1309 if runner.has_new_code(): | 1312 if runner.has_new_code(): |
| 1310 runner.run_test_sequence() | 1313 runner.run_test_sequence() |
| 1311 else: | 1314 else: |
| 1312 time.sleep(200) | 1315 time.sleep(200) |
| 1313 else: | 1316 else: |
| 1314 runner.run_test_sequence() | 1317 runner.run_test_sequence() |
| 1315 | 1318 |
| 1316 if __name__ == '__main__': | 1319 if __name__ == '__main__': |
| 1317 main() | 1320 main() |
| OLD | NEW |