From 2fe1fb974aed1447c3a6bd1ce2b45b86c99a7bde Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 26 Mar 2021 00:27:23 +0100 Subject: [PATCH] Display number of entry call stacks in a tooltip. --- server/TracySourceView.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 526c9501..71286426 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -2483,11 +2483,17 @@ void SourceView::RenderAsmLine( AsmLine& line, uint32_t ipcnt, uint32_t iptotal, inlineList++; } } + const auto& stats = *worker.GetSymbolStats( symAddrParents ); + assert( !stats.parents.empty() ); if( m_font ) ImGui::PopFont(); ImGui::BeginTooltip(); TextFocused( "Time:", TimeToString( ipcnt * worker.GetSamplingPeriod() ) ); TextFocused( "Sample count:", RealToString( ipcnt ) ); + ImGui::Separator(); + TextFocused( "Entry call stacks:", RealToString( stats.parents.size() ) ); + ImGui::SameLine(); + TextDisabledUnformatted( "(middle click to view)" ); ImGui::EndTooltip(); if( m_font ) ImGui::PushFont( m_font );