mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Drop legacy code for reading long unsupported traces.
This commit is contained in:
parent
98551ab892
commit
5ec1313af1
@ -24,26 +24,17 @@ void ThreadCompress::Load( FileRead& f, int fileVer )
|
||||
assert( m_threadMap.empty() );
|
||||
|
||||
uint64_t sz;
|
||||
if( fileVer >= FileVersion( 0, 4, 4 ) )
|
||||
f.Read( sz );
|
||||
if( sz != 0 )
|
||||
{
|
||||
f.Read( sz );
|
||||
if( sz != 0 )
|
||||
m_threadExpand.reserve_and_use( sz );
|
||||
f.Read( m_threadExpand.data(), sizeof( uint64_t ) * sz );
|
||||
m_threadMap.reserve( sz );
|
||||
for( size_t i=0; i<sz; i++ )
|
||||
{
|
||||
m_threadExpand.reserve_and_use( sz );
|
||||
f.Read( m_threadExpand.data(), sizeof( uint64_t ) * sz );
|
||||
m_threadMap.reserve( sz );
|
||||
for( size_t i=0; i<sz; i++ )
|
||||
{
|
||||
m_threadMap.emplace( m_threadExpand[i], i );
|
||||
}
|
||||
m_threadMap.emplace( m_threadExpand[i], i );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
f.Read( sz );
|
||||
m_threadExpand.reserve( sz );
|
||||
m_threadExpand.push_back( 0 );
|
||||
}
|
||||
}
|
||||
|
||||
void ThreadCompress::Save( FileWrite& f ) const
|
||||
|
Loading…
Reference in New Issue
Block a user