Code profiling¶
code_profiling ¶
timer ¶
timer(func)
Wrapper to time and log the function execution.
Parameters:
-
func
–
function
Source code in churn_pred/code_profiling.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
ram_usage ¶
ram_usage(func)
Wrapper to monitor and log RAM usage during the function execution. NOTE: can be applied to function but not to method of a class.
Parameters:
-
func
–
function
Source code in churn_pred/code_profiling.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|