comparison contrib/perf.py @ 46255:cce05a6c271f

perf: don't turn byte to string when formatting perfbranchmap I am not sure why this `str` all is there is the first place. Differential Revision: https://phab.mercurial-scm.org/D9751
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 13 Jan 2021 17:21:51 +0100
parents 96b73671753a
children b8d8fd2fe75f
comparison
equal deleted inserted replaced
46254:c4b792fa109e 46255:cce05a6c271f
3482 try: 3482 try:
3483 for name in allfilters: 3483 for name in allfilters:
3484 printname = name 3484 printname = name
3485 if name is None: 3485 if name is None:
3486 printname = b'unfiltered' 3486 printname = b'unfiltered'
3487 timer(getbranchmap(name), title=str(printname)) 3487 timer(getbranchmap(name), title=printname)
3488 finally: 3488 finally:
3489 branchcacheread.restore() 3489 branchcacheread.restore()
3490 branchcachewrite.restore() 3490 branchcachewrite.restore()
3491 fm.end() 3491 fm.end()
3492 3492