#include <sleipnir/util/setup_profiler.hpp>
|
std::string | name |
| Name of measurement to show in diagnostics.
|
|
Records the number of profiler measurements (start/stop pairs) and the average duration between each start and stop call.
◆ SetupProfiler()
slp::SetupProfiler::SetupProfiler |
( |
std::string_view |
name | ) |
|
|
inlineexplicit |
Constructs a SetupProfiler.
- Parameters
-
name | Name of measurement to show in diagnostics. |
◆ duration()
const std::chrono::duration< double > & slp::SetupProfiler::duration |
( |
| ) |
const |
|
inline |
Returns the setup duration in milliseconds as a double.
- Returns
- The setup duration in milliseconds as a double.
◆ start()
void slp::SetupProfiler::start |
( |
| ) |
|
|
inline |
Tell the profiler to start measuring setup time.
◆ stop()
void slp::SetupProfiler::stop |
( |
| ) |
|
|
inline |
Tell the profiler to stop measuring setup time.
The documentation for this class was generated from the following file: