Mercurial > hg-stable
changeset 51914:8c990011c804
profiling: document the py-spy value for `profiling.type`
The feature was not visible otherwise.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 04 Sep 2024 17:08:58 +0200 |
parents | 51235f6aa067 |
children | 6a0afc73472e |
files | mercurial/helptext/config.txt tests/test-help.t |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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"