From bc27bbde370617ad918ad0f5f31c2f72dac2b645 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 10 Dec 2017 21:49:23 +0100 Subject: [PATCH] Display mutex type. --- server/TracyView.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index ab36cbfd..de80034b 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -3151,6 +3151,15 @@ int View::DrawLocks( uint64_t tid, bool hover, double pxns, const ImVec2& wpos, if( hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( 0, offset ), wpos + ImVec2( ty + ImGui::CalcTextSize( buf ).x, offset + ty ) ) ) { ImGui::BeginTooltip(); + switch( v.second.type ) + { + case LockType::Lockable: + ImGui::Text( "Type: lockable" ); + break; + default: + assert( false ); + break; + } ImGui::Text( "Thread list:" ); ImGui::Separator(); ImGui::Indent( ty );