From b05625d4444a6a4cf275cadc699517d144c554ca Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 8 Apr 2020 17:17:45 +0200 Subject: [PATCH] Display count of inlined functions in symbols. --- server/TracyView.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index b369d184..060742ca 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -11286,6 +11286,7 @@ void View::DrawStatistics() { uint64_t symAddr; uint32_t incl, excl; + uint32_t count; }; Vector data; @@ -11393,13 +11394,14 @@ void View::DrawStatistics() auto it = baseMap.find( symAddr ); if( it == baseMap.end() ) { - baseMap.emplace( symAddr, SymList { symAddr, v.incl, v.excl } ); + baseMap.emplace( symAddr, SymList { symAddr, v.incl, v.excl, 0 } ); } else { assert( symAddr == it->second.symAddr ); it->second.incl += v.incl; it->second.excl += v.excl; + it->second.count++; } } data.clear(); @@ -11546,6 +11548,11 @@ void View::DrawStatistics() ImGui::SameLine(); ImGui::TextDisabled( "(%s)", parentName ); } + if( !m_statSeparateInlines && v.count > 0 ) + { + ImGui::SameLine(); + ImGui::TextDisabled( "(+%s)", RealToString( v.count ) ); + } ImGui::NextColumn(); float indentVal = 0.f; if( m_statBuzzAnim.Match( v.symAddr ) )