mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Store main thread id.
This commit is contained in:
parent
a41db80ff2
commit
2faa1abb21
@ -42,6 +42,7 @@ static Profiler* s_instance = nullptr;
|
|||||||
|
|
||||||
Profiler::Profiler()
|
Profiler::Profiler()
|
||||||
: m_timeBegin( GetTime() )
|
: m_timeBegin( GetTime() )
|
||||||
|
, m_mainThread( GetThreadHandle() )
|
||||||
, m_shutdown( false )
|
, m_shutdown( false )
|
||||||
, m_id( 0 )
|
, m_id( 0 )
|
||||||
, m_stream( LZ4_createStream() )
|
, m_stream( LZ4_createStream() )
|
||||||
|
@ -42,6 +42,7 @@ private:
|
|||||||
bool HandleServerQuery();
|
bool HandleServerQuery();
|
||||||
|
|
||||||
int64_t m_timeBegin;
|
int64_t m_timeBegin;
|
||||||
|
uint64_t m_mainThread;
|
||||||
std::thread m_thread;
|
std::thread m_thread;
|
||||||
std::atomic<bool> m_shutdown;
|
std::atomic<bool> m_shutdown;
|
||||||
std::atomic<uint64_t> m_id;
|
std::atomic<uint64_t> m_id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user