From 0a7924333277098d6c5cfdfb727017fb2923e270 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 25 May 2018 21:13:56 +0200 Subject: [PATCH] Display thread from which message originated on msg list. --- server/TracyView.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 19a78866..28c6ccc7 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -3171,9 +3171,11 @@ void View::DrawOptions() void View::DrawMessages() { ImGui::Begin( "Messages", &m_showMessages ); - ImGui::Columns( 2 ); + ImGui::Columns( 3 ); ImGui::Text( "Time" ); ImGui::NextColumn(); + ImGui::Text( "Thread" ); + ImGui::NextColumn(); ImGui::Text( "Message" ); ImGui::NextColumn(); ImGui::Separator(); @@ -3189,6 +3191,10 @@ void View::DrawMessages() } ImGui::PopID(); ImGui::NextColumn(); + ImGui::Text( "%s", m_worker.GetThreadString( v->thread ) ); + ImGui::SameLine(); + ImGui::TextDisabled( "(0x%" PRIX64 ")", v->thread ); + ImGui::NextColumn(); ImGui::TextWrapped( "%s", m_worker.GetString( v->ref ) ); ImGui::NextColumn(); }