1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Send lean memory callstacks.

This commit is contained in:
Bartosz Taudul
2020-05-10 19:28:08 +02:00
parent 2dc07fca0b
commit f0ade07be8
4 changed files with 11 additions and 7 deletions
+3 -1
View File
@@ -2036,7 +2036,7 @@ Profiler::DequeueStatus Profiler::DequeueSerial()
while( item != end )
{
uint64_t ptr;
const auto idx = MemRead<uint8_t>( &item->hdr.idx );
auto idx = MemRead<uint8_t>( &item->hdr.idx );
if( idx < (int)QueueType::Terminate )
{
switch( (QueueType)idx )
@@ -2045,6 +2045,8 @@ Profiler::DequeueStatus Profiler::DequeueSerial()
ptr = MemRead<uint64_t>( &item->callstackMemory.ptr );
SendCallstackPayload( ptr );
tracy_free( (void*)ptr );
idx++;
MemWrite( &item->hdr.idx, idx );
break;
case QueueType::LockWait:
case QueueType::LockSharedWait: