diff --git a/client/TracyLock.hpp b/client/TracyLock.hpp index 59e3bead..d84b041f 100644 --- a/client/TracyLock.hpp +++ b/client/TracyLock.hpp @@ -47,6 +47,7 @@ public: item->lockWait.id = m_id; item->lockWait.thread = thread; item->lockWait.time = Profiler::GetTime(); + item->lockWait.type = LockType::Lockable; tail.store( magic + 1, std::memory_order_release ); } @@ -152,6 +153,7 @@ public: item->lockWait.id = m_id; item->lockWait.thread = thread; item->lockWait.time = Profiler::GetTime(); + item->lockWait.type = LockType::SharedLockable; tail.store( magic + 1, std::memory_order_release ); } @@ -215,6 +217,7 @@ public: item->lockWait.id = m_id; item->lockWait.thread = thread; item->lockWait.time = Profiler::GetTime(); + item->lockWait.type = LockType::SharedLockable; tail.store( magic + 1, std::memory_order_release ); } diff --git a/common/TracyQueue.hpp b/common/TracyQueue.hpp index d2e95ebc..0762f39c 100644 --- a/common/TracyQueue.hpp +++ b/common/TracyQueue.hpp @@ -101,6 +101,7 @@ struct QueueLockWait uint32_t id; int64_t time; uint64_t thread; + LockType type; }; struct QueueLockObtain