changeset 43908:ce315b1fc9a7

perf: document `perfdirstate`
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 08 Oct 2019 01:46:57 -0400
parents 97f80dd21312
children 436a6a31df38
files contrib/perf.py tests/test-contrib-perf.t
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/perf.py
+++ b/contrib/perf.py
@@ -1103,6 +1103,11 @@
 
 @command(b'perfdirstate', formatteropts)
 def perfdirstate(ui, repo, **opts):
+    """benchmap the time necessary to load a dirstate from scratch
+
+    The dirstate is loaded to the point were a "contains" request can be
+    answered.
+    """
     opts = _byteskwargs(opts)
     timer, fm = gettimer(ui, opts)
     b"a" in repo.dirstate
--- a/tests/test-contrib-perf.t
+++ b/tests/test-contrib-perf.t
@@ -107,7 +107,7 @@
    perfdirfoldmap
                  (no help text available)
    perfdirs      (no help text available)
-   perfdirstate  (no help text available)
+   perfdirstate  benchmap the time necessary to load a dirstate from scratch
    perfdirstatedirs
                  (no help text available)
    perfdirstatefoldmap