Send/free callstack sample payloads.

This commit is contained in:
Bartosz Taudul 2020-02-22 16:05:01 +01:00
parent 3b0ed5337b
commit 1ee80e0df5

View File

@ -1619,6 +1619,10 @@ static void FreeAssociatedMemory( const QueueItem& item )
ptr = MemRead<uint64_t>( &item.callstackAlloc.ptr ); ptr = MemRead<uint64_t>( &item.callstackAlloc.ptr );
tracy_free( (void*)ptr ); tracy_free( (void*)ptr );
break; break;
case QueueType::CallstackSample:
ptr = MemRead<uint64_t>( &item.callstackSample.ptr );
tracy_free( (void*)ptr );
break;
case QueueType::FrameImage: case QueueType::FrameImage:
ptr = MemRead<uint64_t>( &item.frameImage.image ); ptr = MemRead<uint64_t>( &item.frameImage.image );
tracy_free( (void*)ptr ); tracy_free( (void*)ptr );
@ -1743,6 +1747,11 @@ Profiler::DequeueStatus Profiler::Dequeue( moodycamel::ConsumerToken& token )
SendCallstackAlloc( ptr ); SendCallstackAlloc( ptr );
tracy_free( (void*)ptr ); tracy_free( (void*)ptr );
break; break;
case QueueType::CallstackSample:
ptr = MemRead<uint64_t>( &item->callstackSample.ptr );
SendCallstackPayload64( ptr );
tracy_free( (void*)ptr );
break;
case QueueType::FrameImage: case QueueType::FrameImage:
{ {
ptr = MemRead<uint64_t>( &item->frameImage.image ); ptr = MemRead<uint64_t>( &item->frameImage.image );