diff --git a/client/TracyScoped.hpp b/client/TracyScoped.hpp index 18c1cb72..c8cfb464 100755 --- a/client/TracyScoped.hpp +++ b/client/TracyScoped.hpp @@ -4,6 +4,7 @@ #include #include "TracyProfiler.hpp" +#include "TracyThread.hpp" namespace tracy { @@ -12,7 +13,7 @@ class ScopedZone { public: ScopedZone( const char* file, const char* function, uint32_t line ) - : m_id( Profiler::ZoneBegin( QueueZoneBegin { GetTime(), (uint64_t)file, (uint64_t)function, line } ) ) + : m_id( Profiler::ZoneBegin( QueueZoneBegin { GetTime(), (uint64_t)file, (uint64_t)function, line, GetThreadHandle() } ) ) { } diff --git a/common/TracyQueue.hpp b/common/TracyQueue.hpp index 4a7c71c9..8db2b29f 100755 --- a/common/TracyQueue.hpp +++ b/common/TracyQueue.hpp @@ -23,6 +23,7 @@ struct QueueZoneBegin uint64_t filename; // ptr uint64_t function; // ptr uint32_t line; + uint64_t thread; }; struct QueueZoneEnd