From 07183300168dee576f620e13d9e3e6053de92239 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 2 Nov 2021 01:48:28 +0100 Subject: [PATCH] Add fiber labels to places with thread information. --- server/TracyView.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 81753875..8d6a52c9 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -3470,6 +3470,11 @@ void View::DrawZones() ImGui::SameLine(); TextColoredUnformatted( ImVec4( 1.f, 0.2f, 0.2f, 1.f ), ICON_FA_SKULL " Crashed" ); } + if( v->isFiber ) + { + ImGui::SameLine(); + TextColoredUnformatted( ImVec4( 0.2f, 0.6f, 0.2f, 1.f ), "Fiber" ); + } const auto ctx = m_worker.GetContextSwitchData( v->id ); @@ -9196,6 +9201,11 @@ void View::DrawOptions() } } } + if( t->isFiber ) + { + ImGui::SameLine(); + TextColoredUnformatted( ImVec4( 0.2f, 0.6f, 0.2f, 1.f ), "Fiber" ); + } ImGui::SameLine(); ImGui::TextDisabled( "%s top level zones", RealToString( t->timeline.size() ) ); idx++;