carb::profiler::ProfileZoneStatic

Defined in carb/profiler/ProfilerUtils.h

class carb::profiler::ProfileZoneStatic

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

inline ProfileZoneStatic(const uint64_t mask, std::tuple<StaticStringType, StaticStringType, StaticStringType> tup, int line)

Constructor.

Parameters
  • mask – Profiling bitmask.

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

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

inline ~ProfileZoneStatic()

Destructor.