Send module name.

This commit is contained in:
Bartosz Taudul 2020-02-26 00:33:09 +01:00
parent 7d0dac9ae2
commit abf8c42a7c
2 changed files with 6 additions and 0 deletions

View File

@ -2215,12 +2215,17 @@ void Profiler::SendCallstackFrame( uint64_t ptr )
const auto frameData = DecodeCallstackPtr( ptr ); const auto frameData = DecodeCallstackPtr( ptr );
{ {
SendString( uint64_t( frameData.imageName ), frameData.imageName, QueueType::CustomStringData );
QueueItem item; QueueItem item;
MemWrite( &item.hdr.type, QueueType::CallstackFrameSize ); MemWrite( &item.hdr.type, QueueType::CallstackFrameSize );
MemWrite( &item.callstackFrameSize.ptr, ptr ); MemWrite( &item.callstackFrameSize.ptr, ptr );
MemWrite( &item.callstackFrameSize.size, frameData.size ); MemWrite( &item.callstackFrameSize.size, frameData.size );
MemWrite( &item.callstackFrameSize.imageName, (uint64_t)frameData.imageName );
AppendData( &item, QueueDataSize[(int)QueueType::CallstackFrameSize] ); AppendData( &item, QueueDataSize[(int)QueueType::CallstackFrameSize] );
tracy_free( (void*)frameData.imageName );
} }
for( uint8_t i=0; i<frameData.size; i++ ) for( uint8_t i=0; i<frameData.size; i++ )

View File

@ -302,6 +302,7 @@ struct QueueCallstackFrameSize
{ {
uint64_t ptr; uint64_t ptr;
uint8_t size; uint8_t size;
uint64_t imageName;
}; };
struct QueueCallstackFrame struct QueueCallstackFrame