diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 52c4c897..e1840785 100755 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -19,7 +19,8 @@ static inline int64_t GetTime() static Profiler* s_instance = nullptr; Profiler::Profiler() - : m_shutdown( false ) + : m_timeBegin( GetTime() ) + , m_shutdown( false ) , m_id( 0 ) { assert( PointerCheckA == PointerCheckB ); diff --git a/client/TracyProfiler.hpp b/client/TracyProfiler.hpp index 25268671..0b3db95e 100755 --- a/client/TracyProfiler.hpp +++ b/client/TracyProfiler.hpp @@ -25,6 +25,7 @@ public: private: void Worker(); + int64_t m_timeBegin; std::thread m_thread; std::atomic m_shutdown; moodycamel::ConcurrentQueue m_queue;