Commit eb060e1a authored by David Wilson's avatar David Wilson

Document Router.profiling.

parent effe4117
......@@ -753,6 +753,17 @@ class ChildIdAllocator(object):
class Router(mitogen.core.Router):
debug = False
#: When enabled, causes the broker thread and any subsequent broker and
#: main threads existing in any child to write
#: ``/tmp/mitogen.stats.<pid>.<thread_name>.log`` containing a
#: :py:mod:`cProfile` dump on graceful exit. Must be set prior to any
#: :py:class:`Broker` being constructed, e.g. via:
#:
#: .. code::
#:
#: mitogen.master.Router.profiling = True
#:
profiling = False
def __init__(self, *args, **kwargs):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment