From f1efafe825b8437f4a85f359c50472cdff2b3876 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 12 Dec 2025 01:23:36 +0100 Subject: [PATCH] Do not show external frames in DrawCallstackCalls(). --- profiler/src/profiler/TracyView_Callstack.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracyView_Callstack.cpp b/profiler/src/profiler/TracyView_Callstack.cpp index b1a7335b..c3b9ea86 100644 --- a/profiler/src/profiler/TracyView_Callstack.cpp +++ b/profiler/src/profiler/TracyView_Callstack.cpp @@ -566,6 +566,10 @@ void View::DrawCallstackCalls( uint32_t callstack, uint16_t limit ) const { const auto frameData = m_worker.GetCallstackFrame( v ); if( !frameData ) break; + const auto& frame = frameData->data[frameData->size - 1]; + auto filename = m_worker.GetString( frame.file ); + auto image = frameData->imageName.Active() ? m_worker.GetString( frameData->imageName ) : nullptr; + if( IsFrameExternal( filename, image ) ) continue; if( first ) { first = false; @@ -576,7 +580,6 @@ void View::DrawCallstackCalls( uint32_t callstack, uint16_t limit ) const TextDisabledUnformatted( ICON_FA_LEFT_LONG ); ImGui::SameLine(); } - const auto& frame = frameData->data[frameData->size - 1]; auto txt = m_worker.GetString( frame.name ); if( txt[0] == '[' ) {