mirror of
https://github.com/wolfpld/tracy.git
synced 2026-09-01 16:08:30 +00:00
Allow access to profiler's worker thread tid.
This commit is contained in:
@@ -2481,6 +2481,11 @@ void Profiler::ProcessSysTime()
|
||||
}
|
||||
#endif
|
||||
|
||||
uint64_t Profiler::GetProfilerTid() const
|
||||
{
|
||||
return s_profilerThreadId;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -447,6 +447,7 @@ public:
|
||||
void SendString( uint64_t ptr, const char* str, QueueType type );
|
||||
|
||||
uint64_t Pid() const { return m_pid; }
|
||||
uint64_t GetProfilerTid() const;
|
||||
|
||||
private:
|
||||
enum class DequeueStatus { Success, ConnectionLost, QueueEmpty };
|
||||
|
||||
Reference in New Issue
Block a user