Mercurial > hg-stable
changeset 43125:56494a2bfe2f
perf: document `perfdirstatefoldmap`
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 08 Oct 2019 01:48:10 -0400 |
parents | 100e7e0cdaad |
children | e337d8247375 |
files | contrib/perf.py tests/test-contrib-perf.t |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/perf.py Tue Oct 08 02:08:41 2019 -0400 +++ b/contrib/perf.py Tue Oct 08 01:48:10 2019 -0400 @@ -1142,6 +1142,10 @@ @command(b'perfdirstatefoldmap', formatteropts) def perfdirstatefoldmap(ui, repo, **opts): + """benchmap a `dirstate._map.filefoldmap.get()` request + + The dirstate filefoldmap cache is dropped between every request. + """ opts = _byteskwargs(opts) timer, fm = gettimer(ui, opts) dirstate = repo.dirstate
--- a/tests/test-contrib-perf.t Tue Oct 08 02:08:41 2019 -0400 +++ b/tests/test-contrib-perf.t Tue Oct 08 01:48:10 2019 -0400 @@ -111,7 +111,7 @@ perfdirstatedirs benchmap a 'dirstate.hasdir' call from an empty 'dirs' cache perfdirstatefoldmap - (no help text available) + benchmap a 'dirstate._map.filefoldmap.get()' request perfdirstatewrite (no help text available) perfdiscovery