mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Store symbol length in trace dumps.
This commit is contained in:
parent
c515a53986
commit
bf52883331
@ -7,7 +7,7 @@ namespace Version
|
||||
{
|
||||
enum { Major = 0 };
|
||||
enum { Minor = 6 };
|
||||
enum { Patch = 6 };
|
||||
enum { Patch = 7 };
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1641,7 +1641,22 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks )
|
||||
}
|
||||
}
|
||||
|
||||
if( fileVer >= FileVersion( 0, 6, 5 ) )
|
||||
if( fileVer >= FileVersion( 0, 6, 7 ) )
|
||||
{
|
||||
f.Read( sz );
|
||||
m_data.symbolMap.reserve( sz );
|
||||
for( uint64_t i=0; i<sz; i++ )
|
||||
{
|
||||
uint64_t symAddr;
|
||||
StringIdx name, file, imageName, callFile;
|
||||
uint32_t line, callLine;
|
||||
uint8_t isInline;
|
||||
Int24 size;
|
||||
f.Read9( symAddr, name, file, line, imageName, callFile, callLine, isInline, size );
|
||||
m_data.symbolMap.emplace( symAddr, SymbolData { name, file, line, imageName, callFile, callLine, isInline, size } );
|
||||
}
|
||||
}
|
||||
else if( fileVer >= FileVersion( 0, 6, 5 ) )
|
||||
{
|
||||
f.Read( sz );
|
||||
m_data.symbolMap.reserve( sz );
|
||||
|
Loading…
Reference in New Issue
Block a user