[Git][reproducible-builds/diffoscope][master] Expand the padding/spacing for "N calls" in the profiling output; having...

Chris Lamb gitlab at salsa.debian.org
Sat Jan 5 21:19:38 CET 2019


Chris Lamb pushed to branch master at Reproducible Builds / diffoscope


Commits:
21e4c1dd by Chris Lamb at 2019-01-05T20:18:50Z
Expand the padding/spacing for "N calls" in the profiling output; having 99,999+ calls to cmp(1) is not uncommon for ISOs.

- - - - -


1 changed file:

- diffoscope/profiling.py


Changes:

=====================================
diffoscope/profiling.py
=====================================
@@ -89,7 +89,7 @@ class ProfileManager(object):
             print_fn("\n{}\n{}\n".format(subtitle, "-" * len(subtitle)))
 
             for value, totals in sorted(keys.items(), key=key, reverse=True):
-                print_fn("  {:10.3f}s {:5d} call{}    {}".format(
+                print_fn("  {:10.3f}s {:6d} call{}    {}".format(
                     totals['time'],
                     totals['count'],
                     ' ' if totals['count'] == 1 else 's',



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/21e4c1ddadbfd79ba2c2d39eaa05671645e43500

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/21e4c1ddadbfd79ba2c2d39eaa05671645e43500
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20190105/cedf867a/attachment.html>


More information about the rb-commits mailing list