perf: document `perfdirstatewrite`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 08 Oct 2019 01:49:34 -0400
changeset 43129 97f9ef777a75
parent 43128 ad801d4af7cd
child 43130 c88075eb28e3
perf: document `perfdirstatewrite`
contrib/perf.py
tests/test-contrib-perf.t
--- a/contrib/perf.py	Tue Oct 08 02:12:15 2019 -0400
+++ b/contrib/perf.py	Tue Oct 08 01:49:34 2019 -0400
@@ -1185,6 +1185,8 @@
 
 @command(b'perfdirstatewrite', formatteropts)
 def perfdirstatewrite(ui, repo, **opts):
+    """benchmap the time it take to write a dirstate on disk
+    """
     opts = _byteskwargs(opts)
     timer, fm = gettimer(ui, opts)
     ds = repo.dirstate
--- a/tests/test-contrib-perf.t	Tue Oct 08 02:12:15 2019 -0400
+++ b/tests/test-contrib-perf.t	Tue Oct 08 01:49:34 2019 -0400
@@ -113,7 +113,7 @@
    perfdirstatefoldmap
                  benchmap a 'dirstate._map.filefoldmap.get()' request
    perfdirstatewrite
-                 (no help text available)
+                 benchmap the time it take to write a dirstate on disk
    perfdiscovery
                  benchmark discovery between local repo and the peer at given
                  path