Mercurial > public > mercurial-scm > hg-stable
changeset 36392:df3f7f00a3fc
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.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Wed, 21 Feb 2018 12:13:16 +0100 |
parents | 075ef2d2e38d |
children | c25290b98190 |
files | contrib/perf.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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()