b.lsprof : module documentation

Part of bzrlib

No module docstring
Function profile Run a function profile.
Class BzrProfiler Bzr utility wrapper around Profiler.
Class Stats Wrapper around the collected data.
Function label Undocumented
Class _CallTreeFilter Converter of a Stats object to input suitable for KCacheGrind.
def profile(f, *args, **kwds):
Run a function profile.

Exceptions are not caught: If you need stats even when exceptions are to be raised, pass in a closure that will catch the exceptions and transform them appropriately for your driver function.

Important caveat: only one profile can execute at a time. See BzrProfiler for details.

ReturnsThe functions return value and a stats object.
def label(code, calltree=False):
Undocumented
API Documentation for Bazaar, generated by pydoctor at 2019-08-18 00:28:49.