From 4eb78f5c8662a6ff65e51e330a410dc944e1f448 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 19 May 2020 13:55:54 +0200 Subject: [PATCH] Auto-initialize profiler in delayed init scenario. --- client/TracyProfiler.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index c6cd88e0..e100f702 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -952,6 +952,11 @@ std::atomic& GetThreadNameData() { return GetProfilerData().thr TRACY_API LuaZoneState& GetLuaZoneState() { return GetProfilerThreadData().luaZoneState; } # endif +namespace +{ + const auto& __profiler_init = GetProfiler(); +} + #else TRACY_API void InitRPMallocThread() {