perfbranchmap: display 'unfiltered' for unfiltered performance
authorBoris Feld <boris.feld@octobus.net>
Wed, 21 Feb 2018 12:13:16 +0100
changeset 36359 df3f7f00a3fc
parent 36358 075ef2d2e38d
child 36360 c25290b98190
perfbranchmap: display 'unfiltered' for unfiltered performance This is slightly clearer than "None" and will help with coming changes to select the filter level we want timing for.
contrib/perf.py
--- a/contrib/perf.py	Thu Feb 22 01:00:57 2018 -0500
+++ b/contrib/perf.py	Wed Feb 21 12:13:16 2018 +0100
@@ -1616,7 +1616,10 @@
     branchcachewrite.set(lambda bc, repo: None)
     try:
         for name in allfilters:
-            timer(getbranchmap(name), title=str(name))
+            printname = name
+            if name is None:
+                printname = 'unfiltered'
+            timer(getbranchmap(name), title=str(printname))
     finally:
         branchcacheread.restore()
         branchcachewrite.restore()