mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Save/load application info.
This commit is contained in:
parent
8c9d46ef29
commit
2e774f4626
@ -7,7 +7,7 @@ namespace Version
|
||||
{
|
||||
enum { Major = 0 };
|
||||
enum { Minor = 4 };
|
||||
enum { Patch = 10 };
|
||||
enum { Patch = 11 };
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1237,6 +1237,16 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
|
||||
}
|
||||
}
|
||||
|
||||
if( fileVer >= FileVersion( 0, 4, 11 ) )
|
||||
{
|
||||
f.Read( sz );
|
||||
if( sz > 0 )
|
||||
{
|
||||
m_data.appInfo.reserve_exact( sz, m_slab );
|
||||
f.Read( m_data.appInfo.data(), sizeof( m_data.appInfo[0] ) * sz );
|
||||
}
|
||||
}
|
||||
|
||||
if( fileVer >= FileVersion( 0, 4, 9 ) )
|
||||
{
|
||||
s_loadProgress.subTotal.store( 0, std::memory_order_relaxed );
|
||||
@ -4428,6 +4438,10 @@ void Worker::Write( FileWrite& f )
|
||||
f.Write( frame.second->data, sizeof( CallstackFrame ) * frame.second->size );
|
||||
}
|
||||
|
||||
sz = m_data.appInfo.size();
|
||||
f.Write( &sz, sizeof( sz ) );
|
||||
f.Write( m_data.appInfo.data(), sizeof( m_data.appInfo[0] ) * sz );
|
||||
|
||||
sz = m_data.frameImage.size();
|
||||
f.Write( &sz, sizeof( sz ) );
|
||||
for( auto& fi : m_data.frameImage )
|
||||
|
Loading…
Reference in New Issue
Block a user