carb::profiler::ProfileZoneDynamic

Defined in carb/profiler/ProfilerUtils.h

class carb::profiler::ProfileZoneDynamic

Helper class that allows to automatically stop profiling upon leving block.

Note

Typically this is not used by an application. It is generated automatically by the CARB_PROFILE_ZONE() macro.

Public Functions

template<typename ...Args>
inline ProfileZoneDynamic(const uint64_t mask, std::tuple<StaticStringType, StaticStringType> tup, int line, const char *nameFmt, Args&&... args)

Constructor.

Parameters
  • mask – Profiling bitmask.

  • tup – A std::tuple of registered static strings for __func__ and __FILE__.

  • line – Line number in the file where the profile zone was started (usually __LINE__).

  • nameFmt – Profile zone name with printf-style formatting followed by arguments

  • args – Printf-style arguments used with nameFmt.

inline ~ProfileZoneDynamic()

Destructor.