Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-08-15 22:54:29 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-08-15 22:54:29 +0300
commitb1aca6acf99f1f79b0f0dd1a279ab74ac2e90a39 (patch)
tree581612dfa5b7419b19c27017db20a2616c641b28 /server/TracyView_Samples.cpp
parentdc84752fab40f34d43549f5e53503a2197b0d86f (diff)
Show original name in tooltip in sample parents window.
Diffstat (limited to 'server/TracyView_Samples.cpp')
-rw-r--r--server/TracyView_Samples.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/server/TracyView_Samples.cpp b/server/TracyView_Samples.cpp
index 5509af29..a3d436c7 100644
--- a/server/TracyView_Samples.cpp
+++ b/server/TracyView_Samples.cpp
@@ -673,6 +673,12 @@ void View::DrawSampleParents()
const char* normalized = m_shortenName != ShortenName::Never ? ShortenZoneName( ShortenName::OnlyNormalize, symName ) : nullptr;
ImGui::PushFont( m_bigFont );
TextFocused( "Symbol:", normalized ? normalized : symName );
+ if( normalized )
+ {
+ ImGui::PopFont();
+ TooltipNormalizedName( symName, normalized );
+ ImGui::PushFont( m_bigFont );
+ }
if( symbol->isInline )
{
ImGui::SameLine();
@@ -684,12 +690,6 @@ void View::DrawSampleParents()
TextDisabledUnformatted( "(without inlines)" );
}
ImGui::PopFont();
- if( normalized && normalized != symName && strcmp( normalized, symName ) != 0 )
- {
- ImGui::PushFont( m_smallFont );
- TextDisabledUnformatted( symName );
- ImGui::PopFont();
- }
TextDisabledUnformatted( "Location:" );
ImGui::SameLine();
const auto callFile = m_worker.GetString( symbol->callFile );