CARB_PROFILE_FLOW_BEGIN
Defined in carb/profiler/Profile.h
-
CARB_PROFILE_FLOW_BEGIN(maskOrChannel, id, name, ...)
Records the beginning of a flow event on the timeline at the current time for the current thread.
Flow events draw an arrow from one point (the
BEGINlocation) to another point (theENDlocation). These two points can be in different threads but must have a matchingidfield. Theidfield is meant to be unique across profiler runs, but may be reused as long as thenamefield matches across allBEGINevents and events occur on the global timeline asBEGINfollowed byEND.This macro will automatically insert an instant event on the current thread’s timeline.
- Parameters
maskOrChannel – The event mask (see carb::profiler::setCaptureMask()) or a profiling channel.
id – A unique identifier that must also be passed to CARB_PROFILE_FLOW_END().
name – The name of the event. This must either be a literal string or a printf-style format string with variadic arguments. Literal strings are far more efficient.
... – Optional printf-style variadic arguments corresponding to format specifiers in
name.