From 6fe5d0575f3cd6b2fdd56f9f09bba5a4ad9c8a0d Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 30 Mar 2020 02:50:09 +0200 Subject: [PATCH] Add parent symbol for inlined symbols in sampled statistics. --- server/TracyView.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index b08dc9e6..6534bfec 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -11437,6 +11437,7 @@ void View::DrawStatistics() continue; } + const char* parentName = nullptr; if( symlen == 0 ) { uint32_t offset; @@ -11448,6 +11449,7 @@ void View::DrawStatistics() { codeAddr = parentAddr; symlen = pit->second.size.Val(); + parentName = m_worker.GetString( pit->second.name ); } } } @@ -11471,6 +11473,11 @@ void View::DrawStatistics() } ImGui::PopID(); } + if( parentName ) + { + ImGui::SameLine(); + ImGui::TextDisabled( "(%s)", parentName ); + } ImGui::NextColumn(); float indentVal = 0.f; if( m_statBuzzAnim.Match( v.symAddr ) )