1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Don't reconstruct mem plot if there's no mem event data.

This commit is contained in:
Bartosz Taudul 2018-05-04 16:08:16 +02:00
parent e7ffe288e6
commit 3768ed5dd7

View File

@ -541,7 +541,10 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
f.Read( m_data.memory.low );
f.Read( m_data.memory.usage );
m_threadMemory = std::thread( [this] { ReconstructMemAllocPlot(); } );
if( sz != 0 )
{
m_threadMemory = std::thread( [this] { ReconstructMemAllocPlot(); } );
}
}
else
{