mirror of
https://github.com/wolfpld/tracy
synced 2025-04-28 20:23:51 +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() );
|
assert( m_threadMap.empty() );
|
||||||
|
|
||||||
uint64_t sz;
|
uint64_t sz;
|
||||||
if( fileVer >= FileVersion( 0, 4, 4 ) )
|
f.Read( sz );
|
||||||
|
if( sz != 0 )
|
||||||
{
|
{
|
||||||
f.Read( sz );
|
m_threadExpand.reserve_and_use( sz );
|
||||||
if( sz != 0 )
|
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 );
|
m_threadMap.emplace( m_threadExpand[i], i );
|
||||||
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 );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
f.Read( sz );
|
|
||||||
m_threadExpand.reserve( sz );
|
|
||||||
m_threadExpand.push_back( 0 );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ThreadCompress::Save( FileWrite& f ) const
|
void ThreadCompress::Save( FileWrite& f ) const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user