carb::profiler::ProfileZoneDynamic¶
Defined in carb/profiler/ProfilerUtils.h
-
class
carb::profiler
::
ProfileZoneDynamic
¶ 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
-
template<typename ...
Args
>
inlineProfileZoneDynamic
(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
.
-
template<typename ...
Args
>
inlineProfileZoneDynamic
(const Channel &channel, std::tuple<StaticStringType, StaticStringType> tup, int line, const char *nameFmt, Args&&... args)¶ Constructor.
- Parameters
channel – A profiling channel.
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.
-
template<typename ...