line_profiler.autoprofile.line_profiler_utils module¶
- line_profiler.autoprofile.line_profiler_utils.add_imported_function_or_module(self, item)[source]¶
Method to add an object to LineProfiler to be profiled.
This method is used to extend an instance of LineProfiler so it can identify whether an object is function/method, class or module and handle it’s profiling accordingly.
- Parameters:
item (Callable | Type | ModuleType) – object to be profiled.