CARB_PROFILE_ZONE

Defined in carb/profiler/Profile.h

CARB_PROFILE_ZONE(mask, zoneName, ...)

Creates a profiling zone over a scope.

This macro creates a temporary object on the stack that automatically begins a profiling zone at the point where this macro is used, and automatically ends the profiling zone when it goes out of scope.

Parameters
  • mask – The event mask. See carb::profiler::setCaptureMask().

  • zoneName – The name of the profiling zone. This must be either a literal string or a printf-style format string. Literal strings are far more efficient.

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