![]() |
Sleipnir C++ API
|
#include </home/runner/work/Sleipnir/Sleipnir/include/sleipnir/util/time_tracer.hpp>
Public Types | |
| using | ID = typename TimeTracerIndex< Entries >::ID |
| Time tracer ID enum type. | |
Public Member Functions | |
| TimeTracerTree (bool enabled) | |
| Tracer & | operator[] (TimeTracerIndex< Entries > index) |
| Tracer & | root () |
| std::span< const Tracer, Entries.size()> | tracers () const |
Static Public Member Functions | |
| static constexpr std::span< const TimeTraceEntry< ID >, Entries.size()> | entries () |
A set of tracers, one per entry in a time trace.
| Tracer | Time tracer type. |
| Entries | Time trace entries. The first entry is the root, which should time everything the other entries do. |
|
inlineexplicit |
Constructs the tracers.
| enabled | Whether the tracers measure time. |
|
inlinestaticconstexpr |
Returns the time trace entries.
|
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. |
|
inline |
Returns the root tracer.
|
inline |
Returns the tracers in time trace order.