mirror of
https://github.com/wolfpld/tracy.git
synced 2026-06-08 08:33:48 +00:00
TracyDebug fires from SysPower's ctor while it scans intel-rapl, which runs as a Profiler member initializer -- before s_instance is set in the Profiler ctor body. Under TRACY_MANUAL_LIFETIME without TRACY_ON_DEMAND, the TracyInternalMessage path guarded this with assert(ProfilerAvailable()), which aborted tracy-monitor whenever it was run as root (only then is intel-rapl readable, so the log is actually reached). Soften the assert to an early-out, matching the TRACY_ON_DEMAND branch. A TracyDebug issued before the profiler is up now silently skips instead of aborting.