From 5a32cd7984997830a74ad145b8a4fecb0fcc768f Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 19 Mar 2018 16:08:50 +0100 Subject: [PATCH] Show zone thread in zone info popup. --- server/TracyView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index dbad6afa..94ad7ea1 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -3402,6 +3402,7 @@ void View::ZoneTooltip( const ZoneEvent& ev ) { int dmul = ev.text.active ? 2 : 1; + const auto tid = GetZoneThread( ev ); auto& srcloc = m_worker.GetSourceLocation( ev.srcloc ); const auto filename = m_worker.GetString( srcloc.file ); @@ -3433,6 +3434,9 @@ void View::ZoneTooltip( const ZoneEvent& ev ) } ImGui::Separator(); ImGui::Text( "%s:%i", filename, line ); + ImGui::Text( "Thread: %s", m_worker.GetThreadString( tid ) ); + ImGui::SameLine(); + ImGui::TextDisabled( "(0x%" PRIX64 ")", tid ); ImGui::Text( "Execution time: %s", TimeToString( end - ev.start ) ); ImGui::Text( "Without profiling: %s", TimeToString( end - ev.start - m_worker.GetDelay() * dmul ) ); if( ev.cpu_start != -1 )