1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-30 12:53:51 +00:00

Display parent symbol for inline symbols in source view.

This commit is contained in:
Bartosz Taudul 2020-03-30 02:46:29 +02:00
parent f62df6125f
commit 17a5faa5e0

View File

@ -268,6 +268,15 @@ void SourceView::Render( const Worker& worker )
ImGui::Spacing(); ImGui::Spacing();
ImGui::SameLine(); ImGui::SameLine();
TextFocused( "Symbol:", worker.GetString( sym->name ) ); TextFocused( "Symbol:", worker.GetString( sym->name ) );
if( sym->isInline )
{
auto parent = worker.GetSymbolData( m_baseAddr );
if( parent )
{
ImGui::SameLine();
ImGui::TextDisabled( "(%s)", worker.GetString( parent->name ) );
}
}
} }
if( !m_showAsm ) if( !m_showAsm )