File: profiling.rst

package info (click to toggle)
python-cliapp 1.20140719-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 376 kB
  • ctags: 546
  • sloc: python: 2,804; makefile: 86
file content (8 lines) | stat: -rw-r--r-- 285 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
Profiling support
=================

If ``sys.argv[0]`` is ``foo``, and the environment
variable ``FOO_PROFILE`` is set, then the execution of the
application (the ``run`` method) is profiled, using ``cProfile``, and
the profile written to the file named in the environment variable.