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 aSolver
. Once the method is decorated, you can use--profile
inbenchopt run
to get a profiling report.