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();
|
const auto shortenName = view.GetShortenName();
|
||||||
auto sym = worker.GetSymbolData( m_symAddr );
|
auto sym = worker.GetSymbolData( m_symAddr );
|
||||||
assert( sym );
|
assert( sym );
|
||||||
|
ImGui::PushFont( m_bigFont );
|
||||||
if( sym->isInline )
|
if( sym->isInline )
|
||||||
{
|
{
|
||||||
auto parent = worker.GetSymbolData( m_baseAddr );
|
auto parent = worker.GetSymbolData( m_baseAddr );
|
||||||
@ -1107,7 +1108,9 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
|
|||||||
{
|
{
|
||||||
const auto normalized = ShortenZoneName( ShortenName::OnlyNormalize, symName );
|
const auto normalized = ShortenZoneName( ShortenName::OnlyNormalize, symName );
|
||||||
TextFocused( ICON_FA_PUZZLE_PIECE " Symbol:", normalized );
|
TextFocused( ICON_FA_PUZZLE_PIECE " Symbol:", normalized );
|
||||||
|
ImGui::PopFont();
|
||||||
TooltipNormalizedName( symName, normalized );
|
TooltipNormalizedName( symName, normalized );
|
||||||
|
ImGui::PushFont( m_bigFont );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1128,13 +1131,16 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
|
|||||||
{
|
{
|
||||||
const auto normalized = ShortenZoneName( ShortenName::OnlyNormalize, symName );
|
const auto normalized = ShortenZoneName( ShortenName::OnlyNormalize, symName );
|
||||||
TextFocused( ICON_FA_PUZZLE_PIECE " Symbol:", normalized );
|
TextFocused( ICON_FA_PUZZLE_PIECE " Symbol:", normalized );
|
||||||
|
ImGui::PopFont();
|
||||||
TooltipNormalizedName( symName, normalized );
|
TooltipNormalizedName( symName, normalized );
|
||||||
|
ImGui::PushFont( m_bigFont );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
TextDisabledUnformatted( worker.GetString( sym->imageName ) );
|
TextDisabledUnformatted( worker.GetString( sym->imageName ) );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::TextDisabled( "0x%" PRIx64, m_baseAddr );
|
ImGui::TextDisabled( "0x%" PRIx64, m_baseAddr );
|
||||||
|
ImGui::PopFont();
|
||||||
|
|
||||||
const bool limitView = view.m_statRange.active;
|
const bool limitView = view.m_statRange.active;
|
||||||
auto inlineList = worker.GetInlineSymbolList( m_baseAddr, m_codeLen );
|
auto inlineList = worker.GetInlineSymbolList( m_baseAddr, m_codeLen );
|
||||||
|
Loading…
Reference in New Issue
Block a user