![]() |
Sleipnir C++ API
|
#include </home/runner/work/Sleipnir/Sleipnir/include/sleipnir/util/print_diagnostics.hpp>
Public Member Functions | |
| SolveDiagnostics (bool trace, bool print) | |
| ~SolveDiagnostics () | |
| SolveDiagnostics (const SolveDiagnostics &)=delete | |
| SolveDiagnostics & | operator= (const SolveDiagnostics &)=delete |
| SolveTimeTracer & | operator[] (TimeTracerIndex< Entries > index) |
Owns a solver's tracers and times the whole solve with the root tracer.
When the solve exits, this prints the final solver diagnostics if requested. If tracing is disabled, the tracers don't measure time.
| Entries | Time trace entries. |
|
inline |
Starts the root tracer.
| trace | Whether the tracers measure time. |
| Whether to print the final solver diagnostics on exit. This requires trace to be true. |
|
inline |
Stops the root tracer and prints the final solver diagnostics if requested.
|
inline |
Returns the tracer with the given ID.
| index | Time tracer ID, converted to its index at compile time. It must be in the time trace. |