mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Display mutex type.
This commit is contained in:
parent
3567d7edd8
commit
bc27bbde37
@ -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 ) ) )
|
if( hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( 0, offset ), wpos + ImVec2( ty + ImGui::CalcTextSize( buf ).x, offset + ty ) ) )
|
||||||
{
|
{
|
||||||
ImGui::BeginTooltip();
|
ImGui::BeginTooltip();
|
||||||
|
switch( v.second.type )
|
||||||
|
{
|
||||||
|
case LockType::Lockable:
|
||||||
|
ImGui::Text( "Type: lockable" );
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
assert( false );
|
||||||
|
break;
|
||||||
|
}
|
||||||
ImGui::Text( "Thread list:" );
|
ImGui::Text( "Thread list:" );
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
ImGui::Indent( ty );
|
ImGui::Indent( ty );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user