# HG changeset patch # User Boris Feld # Date 1541499211 -3600 # Node ID cf3bef7f162b05cbe5abdbc8f675eab00b73fba7 # Parent 520514af2d9378d9d5815f0c4edc01617968356d perf: use the same timer for all section of perfrevlogrevision Otherwise the -T json output is invalid. diff -r 520514af2d93 -r cf3bef7f162b contrib/perf.py --- a/contrib/perf.py Tue May 22 15:26:17 2018 +0200 +++ b/contrib/perf.py Tue Nov 06 11:13:31 2018 +0100 @@ -1790,10 +1790,10 @@ (lambda: dohash(text), b'hash'), ] + timer, fm = gettimer(ui, opts) for fn, title in benches: - timer, fm = gettimer(ui, opts) timer(fn, title=title) - fm.end() + fm.end() @command(b'perfrevset', [(b'C', b'clear', False, b'clear volatile cache between each call.'),