![]() |
Sleipnir C++ API
|
#include </home/runner/work/Sleipnir/Sleipnir/include/sleipnir/util/time_tracer.hpp>
Public Types | |
| using | ID = decltype(Entries[0].id) |
| Time tracer ID enum type. | |
Public Member Functions | |
| consteval | TimeTracerIndex (ID id) |
| constexpr size_t | value () const |
Index of a tracer in a time trace, found at compile time.
| Entries | Time trace entries. |
|
inline |
Finds the given tracer ID in the time trace.
This is implicit so TimeTracerTree::operator[] can take a tracer ID. An ID that isn't in the time trace is a compile error.
| id | Time tracer ID. |
|
inlineconstexpr |
Returns the tracer's index in the time trace.