mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Print symbol name in symbol view with big font.
This commit is contained in:
parent
fa0322f6b4
commit
00e0187506
@ -1093,6 +1093,7 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
|
||||
const auto shortenName = view.GetShortenName();
|
||||
auto sym = worker.GetSymbolData( m_symAddr );
|
||||
assert( sym );
|
||||
ImGui::PushFont( m_bigFont );
|
||||
if( sym->isInline )
|
||||
{
|
||||
auto parent = worker.GetSymbolData( m_baseAddr );
|
||||
@ -1107,7 +1108,9 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
|
||||
{
|
||||
const auto normalized = ShortenZoneName( ShortenName::OnlyNormalize, symName );
|
||||
TextFocused( ICON_FA_PUZZLE_PIECE " Symbol:", normalized );
|
||||
ImGui::PopFont();
|
||||
TooltipNormalizedName( symName, normalized );
|
||||
ImGui::PushFont( m_bigFont );
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -1128,13 +1131,16 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
|
||||
{
|
||||
const auto normalized = ShortenZoneName( ShortenName::OnlyNormalize, symName );
|
||||
TextFocused( ICON_FA_PUZZLE_PIECE " Symbol:", normalized );
|
||||
ImGui::PopFont();
|
||||
TooltipNormalizedName( symName, normalized );
|
||||
ImGui::PushFont( m_bigFont );
|
||||
}
|
||||
}
|
||||
ImGui::SameLine();
|
||||
TextDisabledUnformatted( worker.GetString( sym->imageName ) );
|
||||
ImGui::SameLine();
|
||||
ImGui::TextDisabled( "0x%" PRIx64, m_baseAddr );
|
||||
ImGui::PopFont();
|
||||
|
||||
const bool limitView = view.m_statRange.active;
|
||||
auto inlineList = worker.GetInlineSymbolList( m_baseAddr, m_codeLen );
|
||||
|
Loading…
Reference in New Issue
Block a user