mirror of
https://github.com/wolfpld/tracy
synced 2025-05-01 05:03:53 +00:00
Display count of inlined functions in symbols.
This commit is contained in:
parent
51d5ef5b4e
commit
b05625d444
@ -11286,6 +11286,7 @@ void View::DrawStatistics()
|
|||||||
{
|
{
|
||||||
uint64_t symAddr;
|
uint64_t symAddr;
|
||||||
uint32_t incl, excl;
|
uint32_t incl, excl;
|
||||||
|
uint32_t count;
|
||||||
};
|
};
|
||||||
|
|
||||||
Vector<SymList> data;
|
Vector<SymList> data;
|
||||||
@ -11393,13 +11394,14 @@ void View::DrawStatistics()
|
|||||||
auto it = baseMap.find( symAddr );
|
auto it = baseMap.find( symAddr );
|
||||||
if( it == baseMap.end() )
|
if( it == baseMap.end() )
|
||||||
{
|
{
|
||||||
baseMap.emplace( symAddr, SymList { symAddr, v.incl, v.excl } );
|
baseMap.emplace( symAddr, SymList { symAddr, v.incl, v.excl, 0 } );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
assert( symAddr == it->second.symAddr );
|
assert( symAddr == it->second.symAddr );
|
||||||
it->second.incl += v.incl;
|
it->second.incl += v.incl;
|
||||||
it->second.excl += v.excl;
|
it->second.excl += v.excl;
|
||||||
|
it->second.count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
data.clear();
|
data.clear();
|
||||||
@ -11546,6 +11548,11 @@ void View::DrawStatistics()
|
|||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::TextDisabled( "(%s)", parentName );
|
ImGui::TextDisabled( "(%s)", parentName );
|
||||||
}
|
}
|
||||||
|
if( !m_statSeparateInlines && v.count > 0 )
|
||||||
|
{
|
||||||
|
ImGui::SameLine();
|
||||||
|
ImGui::TextDisabled( "(+%s)", RealToString( v.count ) );
|
||||||
|
}
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
float indentVal = 0.f;
|
float indentVal = 0.f;
|
||||||
if( m_statBuzzAnim.Match( v.symAddr ) )
|
if( m_statBuzzAnim.Match( v.symAddr ) )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user