benchopt.utils.profile

benchopt.utils.profile(func)

Decorator to tell line profiler which function to profile.

Typically, this can be used for the run method of a Solver. Once the method is decorated, you can use --profile in benchopt run to get a profiling report.