mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Don't pre-fill threadExpand, if not needed.
This commit is contained in:
@@ -251,7 +251,6 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
|
||||
{
|
||||
auto loadStart = std::chrono::high_resolution_clock::now();
|
||||
|
||||
m_data.threadExpand.push_back( 0 );
|
||||
m_data.callstackPayload.push_back( nullptr );
|
||||
|
||||
int fileVer = 0;
|
||||
@@ -468,6 +467,11 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
|
||||
{
|
||||
f.Read( sz );
|
||||
m_data.threadExpand.reserve( sz );
|
||||
m_data.threadExpand.push_back( 0 );
|
||||
}
|
||||
else
|
||||
{
|
||||
m_data.threadExpand.push_back( 0 );
|
||||
}
|
||||
|
||||
f.Read( sz );
|
||||
|
||||
Reference in New Issue
Block a user