Get exclusive samples count for a proper symbol.

If inlines are grouped under a base symbol, the base symbol data
includes all the inline sample counts. This was interfering with control
logic determining if sample parents window can be displayed.
This commit is contained in:
Bartosz Taudul 2020-05-19 19:10:40 +02:00
parent e376866436
commit e9c13b254b

View File

@ -11730,7 +11730,18 @@ void View::DrawStatistics()
TextDisabledUnformatted( ICON_FA_CARET_RIGHT ); TextDisabledUnformatted( ICON_FA_CARET_RIGHT );
ImGui::SameLine(); ImGui::SameLine();
} }
if( v.symAddr == 0 || v.excl == 0 ) uint32_t excl;
if( m_statSeparateInlines )
{
excl = v.excl;
}
else
{
auto it = symStat.find( v.symAddr );
assert( it != symStat.end() );
excl = it->second.excl;
}
if( v.symAddr == 0 || excl == 0 )
{ {
ImGui::TextUnformatted( name ); ImGui::TextUnformatted( name );
} }