benchopt.utils.profile#
- benchopt.utils.profile(func)#
Decorator to tell line profiler which function to profile.
Typically, this can be used for the
runmethod of aSolver. Once the method is decorated, you can use--profileinbenchopt runto get a profiling report.