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