Display count of inlined functions in symbols.

This commit is contained in:
Bartosz Taudul 2020-04-08 17:17:45 +02:00
parent 51d5ef5b4e
commit b05625d444

View File

@ -11286,6 +11286,7 @@ void View::DrawStatistics()
{
uint64_t symAddr;
uint32_t incl, excl;
uint32_t count;
};
Vector<SymList> data;
@ -11393,13 +11394,14 @@ void View::DrawStatistics()
auto it = baseMap.find( symAddr );
if( it == baseMap.end() )
{
baseMap.emplace( symAddr, SymList { symAddr, v.incl, v.excl } );
baseMap.emplace( symAddr, SymList { symAddr, v.incl, v.excl, 0 } );
}
else
{
assert( symAddr == it->second.symAddr );
it->second.incl += v.incl;
it->second.excl += v.excl;
it->second.count++;
}
}
data.clear();
@ -11546,6 +11548,11 @@ void View::DrawStatistics()
ImGui::SameLine();
ImGui::TextDisabled( "(%s)", parentName );
}
if( !m_statSeparateInlines && v.count > 0 )
{
ImGui::SameLine();
ImGui::TextDisabled( "(+%s)", RealToString( v.count ) );
}
ImGui::NextColumn();
float indentVal = 0.f;
if( m_statBuzzAnim.Match( v.symAddr ) )