mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 04:23:51 +00:00
Add tooltips for register read/write markers.
This commit is contained in:
parent
a001683a77
commit
57d87af8a2
@ -3339,7 +3339,17 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
|
|||||||
TextColoredUnformatted( ImVec4( 0.5f, 0.5, 1, 1 ), ", " );
|
TextColoredUnformatted( ImVec4( 0.5f, 0.5, 1, 1 ), ", " );
|
||||||
ImGui::SameLine( 0, 0 );
|
ImGui::SameLine( 0, 0 );
|
||||||
}
|
}
|
||||||
TextColoredUnformatted( col, s_regNameX86[line.regData[idx++] & RegMask] );
|
TextColoredUnformatted( col, s_regNameX86[line.regData[idx] & RegMask] );
|
||||||
|
if( ImGui::IsItemHovered() )
|
||||||
|
{
|
||||||
|
ImGui::BeginTooltip();
|
||||||
|
if( ( line.regData[idx] & ( WriteBit | ReadBit ) ) == ( WriteBit | ReadBit ) ) ImGui::TextUnformatted( "Read and write" );
|
||||||
|
else if( line.regData[idx] & WriteBit ) ImGui::TextUnformatted( "Write" );
|
||||||
|
else if( line.regData[idx] & ReadBit ) ImGui::TextUnformatted( "Read" );
|
||||||
|
else ImGui::TextUnformatted( "Previous read" );
|
||||||
|
ImGui::EndTooltip();
|
||||||
|
}
|
||||||
|
idx++;
|
||||||
}
|
}
|
||||||
ImGui::SameLine( 0, 0 );
|
ImGui::SameLine( 0, 0 );
|
||||||
TextColoredUnformatted( ImVec4( 0.5f, 0.5, 1, 1 ), "}" );
|
TextColoredUnformatted( ImVec4( 0.5f, 0.5, 1, 1 ), "}" );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user