Celeritas 0.6.0-dev.116+3fbab5e0
Loading...
Searching...
No Matches
Functions
TraceCounter.hh File Reference
#include <cstddef>
#include "corecel/Config.hh"
This graph shows which files directly or indirectly include this file:

Functions

template<class T >
void celeritas::trace_counter (char const *name, T value)
 Simple performance tracing counter.
 

Function Documentation

◆ trace_counter()

template<class T >
void celeritas::trace_counter ( char const name,
T  value 
)
inline

Simple performance tracing counter.

Template Parameters
TArithmetic 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