From 23e752a03bfcf58b31c76abaecbb25323125cb82 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 14 Jan 2026 02:50:09 +0100 Subject: [PATCH] Rework LLM summary error display in callstack window. --- profiler/src/profiler/TracyView_Callstack.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/profiler/src/profiler/TracyView_Callstack.cpp b/profiler/src/profiler/TracyView_Callstack.cpp index 09c4e918..ae92581c 100644 --- a/profiler/src/profiler/TracyView_Callstack.cpp +++ b/profiler/src/profiler/TracyView_Callstack.cpp @@ -236,6 +236,21 @@ void View::DrawCallstackTable( uint32_t callstack, bool globalEntriesButton ) } } + if( res.contains( "error" ) ) + { + auto& err = res["error"]; + if( err.contains( "message" ) ) + { + auto& msg = err["message"]; + if( msg.is_string() ) + { + std::lock_guard lock( m_callstackDescLock ); + m_callstackDesc[callstack] = " " + msg.get_ref(); + return; + } + } + } + std::lock_guard lock( m_callstackDescLock ); m_callstackDesc[callstack] = ""; } ); @@ -250,6 +265,10 @@ void View::DrawCallstackTable( uint32_t callstack, bool globalEntriesButton ) { DrawWaitingDots( s_time, true, true ); } + else if( strncmp( it->second.c_str(), "", 7 ) == 0 ) + { + TextColoredUnformatted( ImVec4( 1.0f, 0.3f, 0.3f, 1.0f ), it->second.c_str() ); + } else { ImGui::TextUnformatted( it->second.c_str() );