Mercurial > public > mercurial-scm > hg-stable
diff contrib/perf.py @ 32265:c68c400d0a2d
perf: move gettimer() call
This is more consistent with other perf* functions.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 06 May 2017 11:01:02 -0700 |
parents | 6b582f9b6e5e |
children | 112ba1c7d65d |
line wrap: on
line diff
--- a/contrib/perf.py Sat May 06 10:59:38 2017 -0700 +++ b/contrib/perf.py Sat May 06 11:01:02 2017 -0700 @@ -850,7 +850,6 @@ The start revision can be defined via ``-s/--startrev``. """ - timer, fm = gettimer(ui, opts) _len = getlen(ui) def d(): @@ -867,6 +866,7 @@ for x in xrange(beginrev, endrev, dist): r.revision(r.node(x)) + timer, fm = gettimer(ui, opts) timer(d) fm.end()