CARB_PROFILE_EVENT

Defined in carb/profiler/Profile.h

CARB_PROFILE_EVENT(maskOrChannel, type, name, ...)

Records an instant event on a thread’s timeline at the current time.

Parameters
  • maskOrChannel – The event mask (see carb::profiler::setCaptureMask()) or a profiling channel.

  • type – The type of the instant event that will be passed to carb::profiler::emitInstantStatic() or carb::profiler::emitInstantDynamic().

  • name – The name of the event. This must either be a literal string or a printf-style format string with variadic arguments. Literal strings are far more efficient.

  • ... – Optional printf-style variadic arguments corresponding to format specifiers in name.