Patchwork [10,of,13] perf: document `perfdirstatewrite`

login
register
mail settings
Submitter Pierre-Yves David
Date Oct. 8, 2019, 11:47 a.m.
Message ID <1c51d61bbe6899cc5bae.1570535277@nodosa.octobus.net>
Download mbox | patch
Permalink /patch/42103/
State Accepted
Headers show

Comments

Pierre-Yves David - Oct. 8, 2019, 11:47 a.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1570513774 14400
#      Tue Oct 08 01:49:34 2019 -0400
# Node ID 1c51d61bbe6899cc5baeb20de5539f922710e5a1
# Parent  c33255b2f828e29c1fb1914f7d5cdd74008a26c5
# EXP-Topic perf-doc
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 1c51d61bbe68
perf: document `perfdirstatewrite`

Patch

diff --git a/contrib/perf.py b/contrib/perf.py
--- a/contrib/perf.py
+++ b/contrib/perf.py
@@ -1185,6 +1185,8 @@  def perfdirfoldmap(ui, repo, **opts):
 
 @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
diff --git a/tests/test-contrib-perf.t b/tests/test-contrib-perf.t
--- a/tests/test-contrib-perf.t
+++ b/tests/test-contrib-perf.t
@@ -113,7 +113,7 @@  perfstatus
    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