--- 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