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

Symbol length transfer.

This commit is contained in:
Bartosz Taudul
2020-03-25 18:32:36 +01:00
parent d47e6819a8
commit c999a74d34
6 changed files with 16 additions and 2 deletions
+8
View File
@@ -2281,6 +2281,14 @@ void Profiler::SendCallstackFrame( uint64_t ptr )
MemWrite( &item.callstackFrame.file, (uint64_t)frame.file );
MemWrite( &item.callstackFrame.line, frame.line );
MemWrite( &item.callstackFrame.symAddr, frame.symAddr );
if( frame.symLen > ( 1 << 24 ) )
{
memset( item.callstackFrame.symLen, 0, 3 );
}
else
{
memcpy( item.callstackFrame.symLen, &frame.symLen, 3 );
}
AppendData( &item, QueueDataSize[(int)QueueType::CallstackFrame] );