Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
TracyWrapper.h File Reference

Conditional Tracy profiling macros for the editor. When ENABLE_TRACY is defined, the real Tracy profiler client is included; otherwise the macros expand to no-ops so editor code can be instrumented unconditionally. More...

Macros

#define ZoneScoped   static_cast<void>(0)
 No-op scoped profiling zone when Tracy is disabled.
#define ZoneScopedN(name)
 No-op named profiling zone when Tracy is disabled.
#define FrameMark   static_cast<void>(0)
 No-op frame boundary when Tracy is disabled.
#define FrameMarkStart(name)
 No-op named frame start when Tracy is disabled.
#define FrameMarkEnd(name)
 No-op named frame end when Tracy is disabled.

Detailed Description

Conditional Tracy profiling macros for the editor. When ENABLE_TRACY is defined, the real Tracy profiler client is included; otherwise the macros expand to no-ops so editor code can be instrumented unconditionally.

Native editor builds enable Tracy by default; RE and WASM builds compile this wrapper as no-ops.

Macro Definition Documentation

◆ FrameMarkEnd

#define FrameMarkEnd ( name)
Value:
static_cast<void>(name)

No-op named frame end when Tracy is disabled.

Parameters
nameProfiling label.

◆ FrameMarkStart

#define FrameMarkStart ( name)
Value:
static_cast<void>(name)

No-op named frame start when Tracy is disabled.

Parameters
nameProfiling label.

◆ ZoneScopedN

#define ZoneScopedN ( name)
Value:
static_cast<void>(name)

No-op named profiling zone when Tracy is disabled.

Parameters
nameProfiling label.