mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Normalize names in ghost zone tooltips.
This commit is contained in:
parent
57cabc1e09
commit
d27cb4a094
@ -258,12 +258,19 @@ int View::DrawGhostLevel( const Vector<GhostZone>& vec, bool hover, double pxns,
|
||||
TextDisabledUnformatted( ICON_FA_HAT_WIZARD " kernel" );
|
||||
}
|
||||
ImGui::Separator();
|
||||
ImGui::TextUnformatted( origSymName );
|
||||
const auto normalized = m_shortenName == ShortenName::Never ? origSymName : ShortenZoneName( ShortenName::OnlyNormalize, origSymName );
|
||||
ImGui::TextUnformatted( normalized );
|
||||
if( isInline )
|
||||
{
|
||||
ImGui::SameLine();
|
||||
TextDisabledUnformatted( "[inline]" );
|
||||
}
|
||||
if( normalized != origSymName && strcmp( normalized, origSymName ) != 0 )
|
||||
{
|
||||
ImGui::PushFont( m_smallFont );
|
||||
TextDisabledUnformatted( origSymName );
|
||||
ImGui::PopFont();
|
||||
}
|
||||
const auto symbol = m_worker.GetSymbolData( sym.symAddr );
|
||||
if( symbol ) TextFocused( "Image:", m_worker.GetString( symbol->imageName ) );
|
||||
TextDisabledUnformatted( "Location:" );
|
||||
|
Loading…
x
Reference in New Issue
Block a user