profiling: document the py-spy value for `profiling.type`
The feature was not visible otherwise.
--- 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"