| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2011, 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 from matplotlib.font_manager import FontProperties | 9 from matplotlib.font_manager import FontProperties |
| 10 import matplotlib.pyplot as plt | 10 import matplotlib.pyplot as plt |
| (...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 #minfrog didn't compile correctly. Stop testing now, because subsequent | 601 #minfrog didn't compile correctly. Stop testing now, because subsequent |
| 602 #numbers will be meaningless. | 602 #numbers will be meaningless. |
| 603 return | 603 return |
| 604 size = os.path.getsize('minfrog') | 604 size = os.path.getsize('minfrog') |
| 605 run_cmd(['echo', '%f Bootstrapping time in seconds in production mode' % | 605 run_cmd(['echo', '%f Bootstrapping time in seconds in production mode' % |
| 606 elapsed], self.trace_file, append=True) | 606 elapsed], self.trace_file, append=True) |
| 607 run_cmd(['echo', '%d Generated checked minfrog size' % size], | 607 run_cmd(['echo', '%d Generated checked minfrog size' % size], |
| 608 self.trace_file, append=True) | 608 self.trace_file, append=True) |
| 609 | 609 |
| 610 run_cmd([os.path.join('.', 'minfrog'), '--out=swarm-result', | 610 run_cmd([os.path.join('.', 'minfrog'), '--out=swarm-result', |
| 611 '--compile-only', os.path.join('..', 'client', 'samples', 'swarm', | 611 '--compile-only', os.path.join('..', 'samples', 'swarm', |
| 612 'swarm.dart')]) | 612 'swarm.dart')]) |
| 613 swarm_size = 0 | 613 swarm_size = 0 |
| 614 try: | 614 try: |
| 615 swarm_size = os.path.getsize('swarm-result') | 615 swarm_size = os.path.getsize('swarm-result') |
| 616 except OSError: | 616 except OSError: |
| 617 pass #If compilation failed, continue on running other tests. | 617 pass #If compilation failed, continue on running other tests. |
| 618 | 618 |
| 619 run_cmd([os.path.join('.', 'minfrog'), '--out=total-result', | 619 run_cmd([os.path.join('.', 'minfrog'), '--out=total-result', |
| 620 '--compile-only', os.path.join('..', 'samples', 'total', | 620 '--compile-only', os.path.join('..', 'samples', 'total', |
| 621 'client', 'Total.dart')]) | 621 'client', 'Total.dart')]) |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 737 if has_new_code(): | 737 if has_new_code(): |
| 738 run_test_sequence(cl, size, language, perf) | 738 run_test_sequence(cl, size, language, perf) |
| 739 else: | 739 else: |
| 740 time.sleep(SLEEP_TIME) | 740 time.sleep(SLEEP_TIME) |
| 741 else: | 741 else: |
| 742 run_test_sequence(cl, size, language, perf) | 742 run_test_sequence(cl, size, language, perf) |
| 743 | 743 |
| 744 if __name__ == '__main__': | 744 if __name__ == '__main__': |
| 745 main() | 745 main() |
| 746 | 746 |
| OLD | NEW |