carb::profiler::ProfileZoneStatic

Defined in carb/profiler/ProfilerUtils.h

class ProfileZoneStatic

Helper class that allows to automatically stop profiling upon leaving 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, const ::carb::profiler::detail::String3 &tup, int line)

Constructor.

Parameters
  • mask – Profiling bitmask.

  • tup – A String3 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(const Channel &channel, const ::carb::profiler::detail::String3 &tup, int line)

Constructor.

Parameters
  • channel – A profiling channel.

  • tup – A String3 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.