mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-14 12:04:35 +00:00
Load memory event callstack index.
This commit is contained in:
parent
7c1333ce2f
commit
b6e71dd909
@ -547,8 +547,17 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
|
|||||||
m_data.memory.data.reserve_and_use( sz );
|
m_data.memory.data.reserve_and_use( sz );
|
||||||
auto mem = m_data.memory.data.data();
|
auto mem = m_data.memory.data.data();
|
||||||
for( uint64_t i=0; i<sz; i++ )
|
for( uint64_t i=0; i<sz; i++ )
|
||||||
|
{
|
||||||
|
if( fileVer <= FileVersion( 0, 3, 1 ) )
|
||||||
{
|
{
|
||||||
f.Read( mem, sizeof( MemEvent::ptr ) + sizeof( MemEvent::size ) + sizeof( MemEvent::timeAlloc ) + sizeof( MemEvent::timeFree ) );
|
f.Read( mem, sizeof( MemEvent::ptr ) + sizeof( MemEvent::size ) + sizeof( MemEvent::timeAlloc ) + sizeof( MemEvent::timeFree ) );
|
||||||
|
mem->callstack = 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
f.Read( mem, sizeof( MemEvent::ptr ) + sizeof( MemEvent::size ) + sizeof( MemEvent::timeAlloc ) + sizeof( MemEvent::timeFree ) + sizeof( MemEvent::callstack ) );
|
||||||
|
}
|
||||||
|
|
||||||
uint64_t t0, t1;
|
uint64_t t0, t1;
|
||||||
f.Read2( t0, t1 );
|
f.Read2( t0, t1 );
|
||||||
mem->threadAlloc = CompressThread( t0 );
|
mem->threadAlloc = CompressThread( t0 );
|
||||||
|
Loading…
Reference in New Issue
Block a user