exarl.utils.profile

Module Contents

Functions

PROFILE(func)

Invokes line_profiler and memory_profiler

DEBUG(func)

Print the function signature and return value

TIMER(func)

Print the runtime of the decorated function

TIMERET(func)

Print the runtime of the decorated function

Attributes

prof

results_dir

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