Donner 0.5.1
Embeddable browser-grade SVG2 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)
#define ZoneScopedN(name)
#define FrameMark   static_cast<void>(0)
#define FrameMarkStart(name)
#define FrameMarkEnd(name)

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.

Tracy is linked into every editor build (release + WASM included), but runtime-gated by a UI Help/Devtools toggle. See the Security section of docs/design_docs/editor.md for the trade-off.

Macro Definition Documentation

◆ FrameMarkEnd

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

◆ FrameMarkStart

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

◆ ZoneScopedN

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