mirror of
https://github.com/wolfpld/tracy.git
synced 2026-08-24 03:58:24 +00:00
Add parent symbol for inlined symbols in sampled statistics.
This commit is contained in:
@@ -11437,6 +11437,7 @@ void View::DrawStatistics()
|
||||
continue;
|
||||
}
|
||||
|
||||
const char* parentName = nullptr;
|
||||
if( symlen == 0 )
|
||||
{
|
||||
uint32_t offset;
|
||||
@@ -11448,6 +11449,7 @@ void View::DrawStatistics()
|
||||
{
|
||||
codeAddr = parentAddr;
|
||||
symlen = pit->second.size.Val();
|
||||
parentName = m_worker.GetString( pit->second.name );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -11471,6 +11473,11 @@ void View::DrawStatistics()
|
||||
}
|
||||
ImGui::PopID();
|
||||
}
|
||||
if( parentName )
|
||||
{
|
||||
ImGui::SameLine();
|
||||
ImGui::TextDisabled( "(%s)", parentName );
|
||||
}
|
||||
ImGui::NextColumn();
|
||||
float indentVal = 0.f;
|
||||
if( m_statBuzzAnim.Match( v.symAddr ) )
|
||||
|
||||
Reference in New Issue
Block a user