From 44fae53583d5f53e0e59a0863aa0e63b25ea1bf0 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 18 Sep 2018 16:29:02 +0200 Subject: [PATCH] Display lock source location in tooltip. --- server/TracyView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 79c5f548..6ac360aa 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2992,8 +2992,9 @@ int View::DrawLocks( uint64_t tid, bool hover, double pxns, const ImVec2& wpos, assert( false ); break; } - ImGui::Text( "Thread list:" ); + ImGui::Text( "%s:%i", m_worker.GetString( srcloc.file ), srcloc.line ); ImGui::Separator(); + ImGui::TextDisabled( "Thread list:" ); ImGui::Indent( ty ); for( const auto& t : v.second.threadList ) {