mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
Fix context switch reconstruction condition.
This commit is contained in:
parent
69e5cf796d
commit
40cd5435df
@ -1901,7 +1901,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks )
|
|||||||
m_threadBackground = std::thread( [this, eventMask] {
|
m_threadBackground = std::thread( [this, eventMask] {
|
||||||
std::vector<std::thread> jobs;
|
std::vector<std::thread> jobs;
|
||||||
|
|
||||||
if( !m_data.ctxSwitch.empty() )
|
if( !m_data.ctxSwitch.empty() && m_data.cpuDataCount != 0 )
|
||||||
{
|
{
|
||||||
jobs.emplace_back( std::thread( [this] { ReconstructContextSwitchUsage(); } ) );
|
jobs.emplace_back( std::thread( [this] { ReconstructContextSwitchUsage(); } ) );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user