profiling#
Contrib functionality for profiling tasks.
Functions#
- profile_by_line(output_unit=None, stripzeros=False)#
Decorator for law task methods that performs a line-by-line profiling and prints the results after the method was called. This requires line-profiler to be installed on your system. output_unit and stripzeros are forwarded to
line_profiler.LineProfiler.print_stats()
. Accepts generator functions.