changeset 43123:69301b79fd36

perf: document `perfdirstatedirs`
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 08 Oct 2019 01:47:35 -0400
parents 436a6a31df38
children 100e7e0cdaad
files contrib/perf.py tests/test-contrib-perf.t
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/perf.py	Tue Oct 08 01:57:10 2019 -0400
+++ b/contrib/perf.py	Tue Oct 08 01:47:35 2019 -0400
@@ -1124,6 +1124,8 @@
 
 @command(b'perfdirstatedirs', formatteropts)
 def perfdirstatedirs(ui, repo, **opts):
+    """benchmap a 'dirstate.hasdir' call from an empty `dirs` cache
+    """
     opts = _byteskwargs(opts)
     timer, fm = gettimer(ui, opts)
     b"a" in repo.dirstate
--- a/tests/test-contrib-perf.t	Tue Oct 08 01:57:10 2019 -0400
+++ b/tests/test-contrib-perf.t	Tue Oct 08 01:47:35 2019 -0400
@@ -109,7 +109,7 @@
    perfdirs      (no help text available)
    perfdirstate  benchmap the time necessary to load a dirstate from scratch
    perfdirstatedirs
-                 (no help text available)
+                 benchmap a 'dirstate.hasdir' call from an empty 'dirs' cache
    perfdirstatefoldmap
                  (no help text available)
    perfdirstatewrite