octoprint.util.dev#
This module provides a bunch of utility methods and helpers FOR DEVELOPMENT ONLY.
duration_log(context = None, log = None)
#
Context manager to log the duration of the wrapped code block.
If no log
function is provided will use a debug
python logger for
octoprint.util.dev
.
context
can be set to give some textual context in the output.
Parameters: