diff mercurial/help/config.txt @ 29784:e3501546f7e4

profiling: add a context manager that no-ops if profiling isn't enabled And refactor dispatch.py to use it. As you can see, the resulting code is much simpler. I was tempted to inline _runcommand as part of writing this series. However, a number of extensions wrap _runcommand. So keeping it around is necessary (extensions can't easily wrap runcommand because it calls hooks before and after command execution).
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 14 Aug 2016 17:51:12 -0700
parents 531e85eec23c
children faf1b8923da2
line wrap: on
line diff
--- a/mercurial/help/config.txt	Sun Aug 14 18:25:22 2016 -0700
+++ b/mercurial/help/config.txt	Sun Aug 14 17:51:12 2016 -0700
@@ -1393,6 +1393,12 @@
 statistical text report generated from the profiling data. The
 profiling is done using lsprof.
 
+``enabled``
+    Enable the profiler.
+    (default: false)
+
+    This is equivalent to passing ``--profile`` on the command line.
+
 ``type``
     The type of profiler to use.
     (default: ls)