cashocs.log.profile_execution_time#

cashocs.log.profile_execution_time(
action: str,
level: int = 5,
) Callable[[Callable[[...], T]], Callable[[...], T]][source]#

Profiles the execution time of a function.

This decorator is used to determine how long it takes to complete a function call. The output consists of log calls specified by the log level.

Parameters:
  • action (str) – A string describing what the function does.

  • level (int) – The log level for the output of the profiling.

Return type:

Callable[[Callable[[…], T]], Callable[[…], T]]