mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Show original name in tooltip in sample parents window.
This commit is contained in:
parent
dc84752fab
commit
b1aca6acf9
@ -673,6 +673,12 @@ void View::DrawSampleParents()
|
|||||||
const char* normalized = m_shortenName != ShortenName::Never ? ShortenZoneName( ShortenName::OnlyNormalize, symName ) : nullptr;
|
const char* normalized = m_shortenName != ShortenName::Never ? ShortenZoneName( ShortenName::OnlyNormalize, symName ) : nullptr;
|
||||||
ImGui::PushFont( m_bigFont );
|
ImGui::PushFont( m_bigFont );
|
||||||
TextFocused( "Symbol:", normalized ? normalized : symName );
|
TextFocused( "Symbol:", normalized ? normalized : symName );
|
||||||
|
if( normalized )
|
||||||
|
{
|
||||||
|
ImGui::PopFont();
|
||||||
|
TooltipNormalizedName( symName, normalized );
|
||||||
|
ImGui::PushFont( m_bigFont );
|
||||||
|
}
|
||||||
if( symbol->isInline )
|
if( symbol->isInline )
|
||||||
{
|
{
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
@ -684,12 +690,6 @@ void View::DrawSampleParents()
|
|||||||
TextDisabledUnformatted( "(without inlines)" );
|
TextDisabledUnformatted( "(without inlines)" );
|
||||||
}
|
}
|
||||||
ImGui::PopFont();
|
ImGui::PopFont();
|
||||||
if( normalized && normalized != symName && strcmp( normalized, symName ) != 0 )
|
|
||||||
{
|
|
||||||
ImGui::PushFont( m_smallFont );
|
|
||||||
TextDisabledUnformatted( symName );
|
|
||||||
ImGui::PopFont();
|
|
||||||
}
|
|
||||||
TextDisabledUnformatted( "Location:" );
|
TextDisabledUnformatted( "Location:" );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
const auto callFile = m_worker.GetString( symbol->callFile );
|
const auto callFile = m_worker.GetString( symbol->callFile );
|
||||||
|
Loading…
Reference in New Issue
Block a user