FuncProfiler Functions
Available functions:
function_profile
(export_format: Optional[str] = None, filename: Optional[str] = None, shared_log: bool = False)
: Decorator factory to profile the execution time and memory usage of a function with optional data export and shared logging.line_by_line_profile
(export_format: Optional[str] = None, filename: Optional[str] = None, shared_log: bool = False)
: Decorator for line-by-line profiling of a function with optional data export and shared logging.
Function profile
Decorator factory to profile the execution time and memory usage of a function with optional data export and shared logging.
Available values for Function profile:
export_format
:json
,txt
,csv
,html
(str
)filename
: any (str
)shared_log
:True
/False
(Boolean
)
All arguments are Optional
, but the decorator should still be accompanied by ()
:
If no ()
was passed along with the decorator, you will receive a missing required positional parameter func
error from Python.
Line-by-line profile
Decorator for line-by-line profiling of a function with optional data export and shared logging.
Available values for Line-by-line profile:
export_format
:json
,csv
,html
(str
)filename
: any (str
)shared_log
:True
/False
(Boolean
)
All arguments are Optional
, but the decorator should still be accompanied by ()
:
If no ()
was passed along with the decorator, you will receive a missing required positional parameter func
error from Python.
Last updated