Defined in carb/profiler/Profile.h

CARB_PROFILE_ZONE(maskOrChannel, 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.

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

  • 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.