Auto-initialize profiler in delayed init scenario.

This commit is contained in:
Bartosz Taudul 2020-05-19 13:55:54 +02:00
parent fad7e72fd4
commit 4eb78f5c86

View File

@ -952,6 +952,11 @@ std::atomic<ThreadNameData*>& GetThreadNameData() { return GetProfilerData().thr
TRACY_API LuaZoneState& GetLuaZoneState() { return GetProfilerThreadData().luaZoneState; } TRACY_API LuaZoneState& GetLuaZoneState() { return GetProfilerThreadData().luaZoneState; }
# endif # endif
namespace
{
const auto& __profiler_init = GetProfiler();
}
#else #else
TRACY_API void InitRPMallocThread() TRACY_API void InitRPMallocThread()
{ {