mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Add parent symbol for inlined symbols in sampled statistics.
This commit is contained in:
parent
17a5faa5e0
commit
6fe5d0575f
@ -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 ) )
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user