CARB_PROFILE_ALLOC_NAMED

Defined in carb/profiler/Profile.h

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

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

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

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