profiling: document the py-spy value for `profiling.type`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 04 Sep 2024 17:08:58 +0200
changeset 51877 8c990011c804
parent 51876 51235f6aa067
child 51878 6a0afc73472e
profiling: document the py-spy value for `profiling.type` The feature was not visible otherwise.
mercurial/helptext/config.txt
tests/test-help.t
--- a/mercurial/helptext/config.txt	Thu Sep 19 18:49:04 2024 -0400
+++ b/mercurial/helptext/config.txt	Wed Sep 04 17:08:58 2024 +0200
@@ -2046,6 +2046,9 @@
       Use a statistical profiler, statprof. This profiler is most
       useful for profiling commands that run for longer than about 0.1
       seconds.
+    ``py-spy``
+      use the py-spy profiler. A external py-spy executable must be available.
+      (Make sure to check `profiling.output` config to write the result.)
 
 ``format``
     Profiling format.  Specific to the ``ls`` instrumenting profiler.
--- a/tests/test-help.t	Thu Sep 19 18:49:04 2024 -0400
+++ b/tests/test-help.t	Wed Sep 04 17:08:58 2024 +0200
@@ -1605,7 +1605,7 @@
 ("profiling.type"[break]"ls"[break]"stat"[break])
 
   $ hg help config.type | grep -E '^$'|wc -l
-  \s*3 (re)
+  \s*4 (re)
 
   $ hg help config.profiling.type.ls
           "profiling.type.ls"