Profiling Utilities¶
fusion_bench.utils.timer
¶
timeit_context
¶
Usage:
Source code in fusion_bench/utils/timer.py
__enter__()
¶
Sets the start time and logs an optional message indicating the start of the code block execution.
Parameters:
-
msg
–str, optional message to log
Source code in fusion_bench/utils/timer.py
__exit__(exc_type, exc_val, exc_tb)
¶
Calculates the elapsed time and logs it, along with an optional message indicating the end of the code block execution.