# HG changeset patch # User Siddharth Agarwal # Date 1428027230 25200 # Node ID f5b527024fcc90b72b3467e5c59d74ab8b1c30e7 # Parent e4a733c34bc64a0c1def98649d04798bf7b2cc2e perf: make measuring foldmap perf work again Rev 25c1d3ca5ff6 split the foldmap into two, but I forgot to update perf for the changes. diff -r e4a733c34bc6 -r f5b527024fcc contrib/perf.py --- a/contrib/perf.py Tue Mar 31 23:22:03 2015 -0700 +++ b/contrib/perf.py Thu Apr 02 19:13:50 2015 -0700 @@ -189,14 +189,25 @@ timer(d) fm.end() -@command('perfdirstatefoldmap') -def perffoldmap(ui, repo): +@command('perffilefoldmap') +def perffilefoldmap(ui, repo): timer, fm = gettimer(ui) dirstate = repo.dirstate 'a' in dirstate def d(): - dirstate._foldmap.get('a') - del dirstate._foldmap + dirstate._filefoldmap.get('a') + del dirstate._filefoldmap + timer(d) + fm.end() + +@command('perfdirfoldmap') +def perfdirfoldmap(ui, repo): + timer, fm = gettimer(ui) + dirstate = repo.dirstate + 'a' in dirstate + def d(): + dirstate._dirfoldmap.get('a') + del dirstate._dirfoldmap del dirstate._dirs timer(d) fm.end()