1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 04:23:51 +00:00

Account for case with no local samples (external only).

This commit is contained in:
Bartosz Taudul 2021-04-18 19:21:53 +02:00
parent b217e00dd9
commit 22a8c53e8b
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1115,7 +1115,7 @@ void SourceView::RenderSymbolView( const Worker& worker, View& view )
}
iptotalSrc = iptotalAsm;
}
if( iptotalAsm.local > 0 || ( view.m_statRange.active && worker.GetSamplesForSymbol( m_baseAddr ) ) )
if( ( iptotalAsm.local + iptotalAsm.ext ) > 0 || ( view.m_statRange.active && worker.GetSamplesForSymbol( m_baseAddr ) ) )
{
ImGui::SameLine();
ImGui::Spacing();