+ unset ();
+
+ int longest = 0;
+ for (auto const& i: _counts) {
+ longest = max (longest, int(i.first.length()));
+ }
+
+ list<pair<double, string>> sorted;
+
+ for (auto const& i: _counts) {
+ string name = i.first + string(longest + 1 - i.first.size(), ' ');
+ char buffer[64];
+ snprintf (buffer, 64, "%.4f", i.second.total_time);
+ string total_time (buffer);
+ sorted.push_back (make_pair(i.second.total_time, String::compose("\t%1%2 %3 %4", name, total_time, i.second.number, (i.second.total_time / i.second.number))));
+ }
+
+ sorted.sort ([](pair<double, string> const& a, pair<double, string> const& b) {
+ return a.first > b.first;
+ });
+