diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index e756890c..7bab058a 100755 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -42,6 +42,7 @@ static Profiler* s_instance = nullptr; Profiler::Profiler() : m_timeBegin( GetTime() ) + , m_mainThread( GetThreadHandle() ) , m_shutdown( false ) , m_id( 0 ) , m_stream( LZ4_createStream() ) diff --git a/client/TracyProfiler.hpp b/client/TracyProfiler.hpp index dbfe091a..5431b0d9 100755 --- a/client/TracyProfiler.hpp +++ b/client/TracyProfiler.hpp @@ -42,6 +42,7 @@ private: bool HandleServerQuery(); int64_t m_timeBegin; + uint64_t m_mainThread; std::thread m_thread; std::atomic m_shutdown; std::atomic m_id;