Mercurial > hg
changeset 43974:a2ad5aeedfdf
perf: fix the time measurement for pathcopies relative to p2
PyCharm flagged this as unused. But it seems more likely that it was intended
to reset the time for the p2 path.
Differential Revision: https://phab.mercurial-scm.org/D7742
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 27 Dec 2019 13:42:52 -0500 |
parents | ca5bd34c597b |
children | 2bbb2f556ecf |
files | contrib/perf.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/perf.py Fri Dec 27 13:29:45 2019 -0500 +++ b/contrib/perf.py Fri Dec 27 13:42:52 2019 -0500 @@ -2048,8 +2048,8 @@ data['p1.time'] = end - begin begin = util.timer() p2renames = copies.pathcopies(b, p2) + end = util.timer() data['p2.time'] = end - begin - end = util.timer() data['p1.renamedfiles'] = len(p1renames) data['p2.renamedfiles'] = len(p2renames)