From 4dc05195ca7edfcd78e4b30b0cdf30a871b3d2c0 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 4 Feb 2019 02:27:13 +0100 Subject: [PATCH] Skip internal call stack capture inline frames for MSVC. --- server/TracyView.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 2bba364c..4b0cfa35 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -6567,6 +6567,18 @@ void View::DrawCallstackWindow() for( uint8_t f=0; fdata[f]; + auto txt = m_worker.GetString( frame.name ); + + if( fidx == 0 && f != fsz-1 ) + { + if( strcmp( txt, "tracy::Callstack" ) == 0 || + strcmp( txt, "tracy::Profiler::SendCallstack" ) == 0 || + strcmp( txt, "tracy::ScopedZone::{ctor}" ) == 0 ) + { + continue; + } + } + bidx++; ImGui::Separator(); @@ -6580,7 +6592,6 @@ void View::DrawCallstackWindow() } ImGui::NextColumn(); - auto txt = m_worker.GetString( frame.name ); ImGui::TextWrapped( "%s", txt ); if( ImGui::IsItemClicked() ) {