Profiling#

Workflow inspection and profiling utilities.

Decorators#

make_count(counters[, prefix, loglevel])

Generate counter increment callable object specialized for handling (bound to) counters in the provided counters dictionary.

make_timeit(timers[, prefix, loglevel])

Generate timer increment context manager specialized for handling (bound to) timers in the provided timers dictionary.

tictoc([name, loglevel])

Instrument and log function execution duration.

trace([name, loglevel])

tictoc with TRACE loglevel default.

Methods#

print_structure(runnable[, indent])

Pretty print runnable tree with indent spaces level indentation.

print_counters(runnable[, indent])

Pretty print timers and counters, recursively starting with runnable.