diff --git a/client/TracyLock.hpp b/client/TracyLock.hpp index b4450c09..cf4d38c6 100644 --- a/client/TracyLock.hpp +++ b/client/TracyLock.hpp @@ -32,6 +32,7 @@ public: auto item = token->enqueue_begin( magic ); MemWrite( &item->hdr.type, QueueType::LockAnnounce ); MemWrite( &item->lockAnnounce.id, m_id ); + MemWrite( &item->lockAnnounce.time, Profiler::GetTime() ); MemWrite( &item->lockAnnounce.lckloc, (uint64_t)srcloc ); MemWrite( &item->lockAnnounce.type, LockType::Lockable ); @@ -206,6 +207,7 @@ public: auto item = token->enqueue_begin( magic ); MemWrite( &item->hdr.type, QueueType::LockAnnounce ); MemWrite( &item->lockAnnounce.id, m_id ); + MemWrite( &item->lockAnnounce.time, Profiler::GetTime() ); MemWrite( &item->lockAnnounce.lckloc, (uint64_t)srcloc ); MemWrite( &item->lockAnnounce.type, LockType::SharedLockable ); diff --git a/common/TracyProtocol.hpp b/common/TracyProtocol.hpp index 7012d3d4..b7a4f58f 100644 --- a/common/TracyProtocol.hpp +++ b/common/TracyProtocol.hpp @@ -9,7 +9,7 @@ namespace tracy { -enum : uint32_t { ProtocolVersion = 0 }; +enum : uint32_t { ProtocolVersion = 1 }; using lz4sz_t = uint32_t; diff --git a/common/TracyQueue.hpp b/common/TracyQueue.hpp index 341e2ca8..31bcc3a2 100644 --- a/common/TracyQueue.hpp +++ b/common/TracyQueue.hpp @@ -109,6 +109,7 @@ enum class LockType : uint8_t struct QueueLockAnnounce { uint32_t id; + int64_t time; uint64_t lckloc; // ptr LockType type; };