Sleipnir C++ API
|
#include <sleipnir/autodiff/Profiler.hpp>
Public Member Functions | |
void | StartSetup () |
void | StopSetup () |
void | StartSolve () |
void | StopSolve () |
double | SetupDuration () const |
int | SolveMeasurements () const |
double | AverageSolveDuration () const |
Records the number of profiler measurements (start/stop pairs) and the average duration between each start and stop call.
|
inline |
The average solve duration in milliseconds as a double.
|
inline |
The setup duration in milliseconds as a double.
|
inline |
The number of solve measurements taken.
|
inline |
Tell the profiler to start measuring setup time.
|
inline |
Tell the profiler to start measuring solve time.
|
inline |
Tell the profiler to stop measuring setup time.
|
inline |
Tell the profiler to stop measuring solve time, increment the number of averages, and incorporate the latest measurement into the average.