From e9c13b254b4e0d2efb4bb96133353d3382d108db Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 19 May 2020 19:10:40 +0200 Subject: [PATCH] Get exclusive samples count for a proper symbol. If inlines are grouped under a base symbol, the base symbol data includes all the inline sample counts. This was interfering with control logic determining if sample parents window can be displayed. --- server/TracyView.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 97642667..76c5ce08 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -11730,7 +11730,18 @@ void View::DrawStatistics() TextDisabledUnformatted( ICON_FA_CARET_RIGHT ); ImGui::SameLine(); } - if( v.symAddr == 0 || v.excl == 0 ) + uint32_t excl; + if( m_statSeparateInlines ) + { + excl = v.excl; + } + else + { + auto it = symStat.find( v.symAddr ); + assert( it != symStat.end() ); + excl = it->second.excl; + } + if( v.symAddr == 0 || excl == 0 ) { ImGui::TextUnformatted( name ); }