From 25316ddada214c4a126272e00a0d08b3b551fbeb Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 13 Nov 2021 16:33:09 +0100 Subject: [PATCH] Display notification icon when context is limited. --- server/TracySourceView.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 02576cbc..ae6d393d 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -1036,6 +1036,17 @@ void SourceView::RenderSymbolView( Worker& worker, View& view ) auto inlineList = worker.GetInlineSymbolList( m_baseAddr, m_codeLen ); if( inlineList ) { + if( m_calcInlineStats ) + { + ImGui::SameLine(); + TextColoredUnformatted( ImVec4( 1.f, 1.f, 0.2f, 1.f ), ICON_FA_EXCLAMATION_TRIANGLE ); + if( ImGui::IsItemHovered() ) + { + ImGui::BeginTooltip(); + ImGui::TextUnformatted( "Context is limited to an inline function" ); + ImGui::EndTooltip(); + } + } SmallCheckbox( ICON_FA_SITEMAP " Function:", &m_calcInlineStats ); ImGui::SameLine(); ImGui::SetNextItemWidth( -1 );