Commit c0d5282d authored by Stefan Behnel's avatar Stefan Behnel

Test runner statistics: show the most time intensive test steps (compilatio/run/etc) first.

parent dd7fd780
...@@ -593,7 +593,7 @@ class Stats(object): ...@@ -593,7 +593,7 @@ class Stats(object):
if not self.test_times: if not self.test_times:
return return
lines = ['Times:\n'] lines = ['Times:\n']
for metric, t in sorted(self.test_times.items()): for metric, t in sorted(self.test_times.items(), key=operator.itemgetter(1), reverse=True):
count = self.test_counts[metric] count = self.test_counts[metric]
top = self.top_tests[metric] top = self.top_tests[metric]
lines.append("%-12s: %8.2f sec (%4d, %6.3f / run) - slowest: %s\n" % ( lines.append("%-12s: %8.2f sec (%4d, %6.3f / run) - slowest: %s\n" % (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment