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):
if not self.test_times:
return
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]
top = self.top_tests[metric]
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