exarl.utils.profile
Module Contents
Functions
|
Invokes line_profiler and memory_profiler |
|
Print the function signature and return value |
|
Print the runtime of the decorated function |
|
Print the runtime of the decorated function |
Attributes
- exarl.utils.profile.prof
- exarl.utils.profile.results_dir
- exarl.utils.profile.PROFILE(func)
Invokes line_profiler and memory_profiler
- Parameters
func (function) – function to be profiled
- Returns
function – wrapper profile function
- exarl.utils.profile.DEBUG(func)
Print the function signature and return value
- Parameters
func (function) – function to be wrapped for debugggin
- Returns
function – debug wrapper
- exarl.utils.profile.TIMER(func)
Print the runtime of the decorated function
- Parameters
func (function) – function to be wrapped for printing runtime
- Returns
function – timer wrapper function that returns the function return value
- exarl.utils.profile.TIMERET(func)
Print the runtime of the decorated function
- Parameters
func (function) – function to be wrapped for printing runtime
- Returns
function – timer wrapper function that returns the runtime of the function