summaryrefslogtreecommitdiff
path: root/cliapp.5
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-04-08 08:18:02 +0100
committerLars Wirzenius <liw@liw.fi>2012-04-08 08:18:02 +0100
commitc4953eaf462198af5eb1a78a425761125279aecd (patch)
tree39063928e76a28bd8b353a43d15575a54e8b00c7 /cliapp.5
parentfdf55ef1b481cc6c251d6c719744d2204fae5828 (diff)
downloadcliapp-c4953eaf462198af5eb1a78a425761125279aecd.tar.gz
Mention FOO_PROFILE=foo.prof in cliapp(5)
Diffstat (limited to 'cliapp.5')
-rw-r--r--cliapp.514
1 files changed, 14 insertions, 0 deletions
diff --git a/cliapp.5 b/cliapp.5
index 2b114fb..f49fbad 100644
--- a/cliapp.5
+++ b/cliapp.5
@@ -129,6 +129,20 @@ way that is very lightweight when the tracing is turned off.
The option specifies for which source code files to turn on tracing.
The actual logging happens via the normal Python logging facilities,
at the debug level.
+.SS "Python profiling support"
+You can run the application under the Python profiler
+.RB ( cProfile )
+by setting an environment variable.
+The name of the variable is
+.BR FOO_PROFILE ,
+where
+.B FOO
+is the name of the program,
+as set by the application code or determined by
+.B cliapp
+automatically.
+The value of the environment variable is the name of the file to which the
+resulting profile is to be written.
.SH FILES
.B cliapp
reads a list of configuration files at startup,