mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
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:
parent
e376866436
commit
e9c13b254b
@ -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 );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user