Celeritas
0.5.0-86+4a8eea4
|
Numeric tracing counter. More...
#include "TraceCounter.hh"
#include <type_traits>
#include <perfetto.h>
#include "corecel/Types.hh"
#include "detail/TrackEvent.perfetto.hh"
Functions | |
template<class T > | |
void | celeritas::trace_counter (char const *name, T value) |
Simple performance tracing counter. More... | |
template void | celeritas::trace_counter (char const *, unsigned int) |
template void | celeritas::trace_counter (char const *, std::size_t) |
template void | celeritas::trace_counter (char const *, float) |
template void | celeritas::trace_counter (char const *, double) |
Numeric tracing counter.
|
inline |
Simple performance tracing counter.
T | Arithmetic counter type |
Records a named value at the current timestamp which can then be displayed on a timeline. Only supported on host, this compiles but is a noop on device.
See https://perfetto.dev/docs/instrumentation/track-events#counters