CARB_PROFILE_ALLOC_NAMED

Defined in carb/profiler/Profile.h

CARB_PROFILE_ALLOC_NAMED(maskOrChannel, ptr, size, poolName, ...)

Records an allocation event for a named memory pool for profilers that support them.

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

  • ptr – The memory address that was allocated.

  • size – The size of the memory region beginning at ptr.

  • poolName – The name of the memory pool. 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 poolName.