From b190a15ef65863b5074d9ee90284439b7185986c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 29 Jun 2018 18:54:19 +0200 Subject: [PATCH] Display numerical thread id in memory plot tooltip. --- server/TracyView.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 3c5ae64c..e7fb067a 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2733,14 +2733,18 @@ void View::DrawPlotPoint( const ImVec2& wpos, float x, float y, int offset, uint } TextFocused( "Duration:", TimeToString( ev->timeFree - ev->timeAlloc ) ); } + uint64_t tid; if( change > 0 ) { - TextFocused( "Thread:", m_worker.GetThreadString( m_worker.DecompressThread( ev->threadAlloc ) ) ); + tid = m_worker.DecompressThread( ev->threadAlloc ); } else { - TextFocused( "Thread:", m_worker.GetThreadString( m_worker.DecompressThread( ev->threadFree ) ) ); + tid = m_worker.DecompressThread( ev->threadFree ); } + TextFocused( "Thread:", m_worker.GetThreadString( tid ) ); + ImGui::SameLine(); + ImGui::TextDisabled( "(0x%" PRIX64 ")", tid ); if( ImGui::IsMouseClicked( 0 ) ) {