extras.profiler module

extras.profiler.profile(filepath: str | pathlib.Path) Callable[source]

Decorator that profiles a function and saves the .prof file generated.

Parameters

filepath – Path to save code profile to

Usage:

``` @profile(“path/to/file.prof”) def func(*args, **kwargs):

```