From 25b3cdc1ee614f0739481772b73da16e50f4afe9 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 25 Oct 2019 18:22:42 +0200 Subject: [PATCH] Send thread wakeups when handling disconnect request. --- client/TracyProfiler.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 06f69899..61db77f5 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -1822,6 +1822,16 @@ Profiler::DequeueStatus Profiler::DequeueContextSwitches( tracy::moodycamel::Con } if( !AppendData( item, QueueDataSize[(int)QueueType::ContextSwitch] ) ) return DequeueStatus::ConnectionLost; } + else if( idx == (uint8_t)QueueType::ThreadWakeup ) + { + const auto csTime = MemRead( &item->threadWakeup.time ); + if( csTime > timeStop ) + { + timeStop = -1; + return DequeueStatus::Success; + } + if( !AppendData( item, QueueDataSize[(int)QueueType::ThreadWakeup] ) ) return DequeueStatus::ConnectionLost; + } item++; } }