From def6c674b238619f47e014a038d6f76b6f1e9874 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 20 Aug 2018 14:37:14 +0200 Subject: [PATCH] Add crash notification to thread tooltip. --- server/TracyView.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 9278d53a..8b6671b5 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -1669,6 +1669,15 @@ void View::DrawZones() ImGui::BeginTooltip(); ImGui::Text( "%s", m_worker.GetThreadString( v->id ) ); + if( crash.thread == v->id ) + { + ImGui::SameLine(); +#ifdef TRACY_EXTENDED_FONT + ImGui::TextColored( ImVec4( 1.f, 0.2f, 0.2f, 1.f ), ICON_FA_SKULL " Crashed" ); +#else + ImGui::TextColored( ImVec4( 1.f, 0.2f, 0.2f, 1.f ), "Crashed" ); +#endif + } if( !v->timeline.empty() ) { ImGui::Separator();