changeset 43129:97f9ef777a75

perf: document `perfdirstatewrite`
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 08 Oct 2019 01:49:34 -0400
parents ad801d4af7cd
children c88075eb28e3
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 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