From 2faa1abb211ac7fa03ed9c14fe3ef8e9f19e4593 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 23 Sep 2017 01:37:07 +0200 Subject: [PATCH] Store main thread id. --- client/TracyProfiler.cpp | 1 + client/TracyProfiler.hpp | 1 + 2 files changed, 2 insertions(+) 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;