perf: document `perfdirstatefoldmap`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 08 Oct 2019 01:48:10 -0400
changeset 43125 56494a2bfe2f
parent 43124 100e7e0cdaad
child 43126 e337d8247375
perf: document `perfdirstatefoldmap`
contrib/perf.py
tests/test-contrib-perf.t
--- 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