From 1ee80e0df58b6ae03176e33d369124cc7f095cdb Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 22 Feb 2020 16:05:01 +0100 Subject: [PATCH] Send/free callstack sample payloads. --- client/TracyProfiler.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index d47dfa5f..f8f02254 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -1619,6 +1619,10 @@ static void FreeAssociatedMemory( const QueueItem& item ) ptr = MemRead( &item.callstackAlloc.ptr ); tracy_free( (void*)ptr ); break; + case QueueType::CallstackSample: + ptr = MemRead( &item.callstackSample.ptr ); + tracy_free( (void*)ptr ); + break; case QueueType::FrameImage: ptr = MemRead( &item.frameImage.image ); tracy_free( (void*)ptr ); @@ -1743,6 +1747,11 @@ Profiler::DequeueStatus Profiler::Dequeue( moodycamel::ConsumerToken& token ) SendCallstackAlloc( ptr ); tracy_free( (void*)ptr ); break; + case QueueType::CallstackSample: + ptr = MemRead( &item->callstackSample.ptr ); + SendCallstackPayload64( ptr ); + tracy_free( (void*)ptr ); + break; case QueueType::FrameImage: { ptr = MemRead( &item->frameImage.image );