mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Save/load crash information.
This commit is contained in:
@@ -287,6 +287,11 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
|
||||
m_hostInfo = std::string( tmp, tmp+sz );
|
||||
}
|
||||
|
||||
if( fileVer >= FileVersion( 0, 3, 204 ) )
|
||||
{
|
||||
f.Read( &m_data.m_crashEvent, sizeof( m_data.m_crashEvent ) );
|
||||
}
|
||||
|
||||
if( fileVer >= FileVersion( 0, 3, 202 ) )
|
||||
{
|
||||
f.Read( sz );
|
||||
@@ -2977,6 +2982,8 @@ void Worker::Write( FileWrite& f )
|
||||
f.Write( &sz, sizeof( sz ) );
|
||||
f.Write( m_hostInfo.c_str(), sz );
|
||||
|
||||
f.Write( &m_data.m_crashEvent, sizeof( m_data.m_crashEvent ) );
|
||||
|
||||
sz = m_data.frames.Data().size();
|
||||
f.Write( &sz, sizeof( sz ) );
|
||||
for( auto& fd : m_data.frames.Data() )
|
||||
|
||||
Reference in New Issue
Block a user