From 65e62dea060967a31bce694b413fb7c0408d1ccf Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 17 Aug 2019 03:06:54 +0200 Subject: [PATCH] Display thread ids next to thread names in CPU data. --- server/TracyView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index e10bc686..23cd91f0 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -4018,6 +4018,8 @@ int View::DrawCpuData( int offset, double pxns, const ImVec2& wpos, bool hover, ImGui::SameLine(); TextDisabledUnformatted( "(profiled program)" ); TextFocused( "Thread:", m_worker.GetThreadString( thread ) ); + ImGui::SameLine(); + ImGui::TextDisabled( "(0x%" PRIX64 ")", thread ); } else { @@ -4032,6 +4034,8 @@ int View::DrawCpuData( int offset, double pxns, const ImVec2& wpos, bool hover, TextDisabledUnformatted( "(external)" ); } TextFocused( "Thread:", m_worker.GetExternalName( thread ).second ); + ImGui::SameLine(); + ImGui::TextDisabled( "(0x%" PRIX64 ")", thread ); } ImGui::Separator(); TextFocused( "Start time:", TimeToString( start ) );