Celeritas  0.5.0-56+6b053cd
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. More...
 

Function Documentation

◆ trace_counter()

template<class T >
void celeritas::trace_counter ( char const *  name,
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