![]() |
Sleipnir C++ API
|
#include <sleipnir/util/setup_profiler.hpp>
Public Member Functions | |
| SetupProfiler (std::string_view name) | |
| void | start () |
| void | stop () |
| std::string_view | name () const |
| const std::chrono::duration< double > & | duration () const |
Records the number of profiler measurements (start/stop pairs) and the average duration between each start and stop call.
|
inlineexplicit |
Constructs a SetupProfiler.
| name | Name of measurement to show in diagnostics. |
Returns the setup duration in milliseconds as a double.
|
inline |
Returns name of measurement to show in diagnostics.
|
inline |
Tell the profiler to start measuring setup time.
|
inline |
Tell the profiler to stop measuring setup time.