Skip to main content

profile

Function
This function is defined in the profiler module.
Decorator to profile a function.

Signature

def profile(func: Optional[Callable]) -> Any

Parameters

func
Optional
No description available.

Returns

Returns
Any
The result of the operation.

Usage

@profile
    def my_function():
        pass

    @profile(category="api")
    def api_call():
        pass