mirror of
https://github.com/wolfpld/tracy
synced 2025-05-01 05:03:53 +00:00
Don't highlight lines with no dependencies.
This commit is contained in:
parent
a7ccb3e811
commit
e132849fe2
@ -2145,6 +2145,20 @@ void SourceView::RenderAsmLine( AsmLine& line, uint32_t ipcnt, uint32_t iptotal,
|
||||
TextColoredUnformatted( ImVec4( 1, 0.25f, 0.25f, 1 ), buf );
|
||||
}
|
||||
else if( line.regData[0] != 0 )
|
||||
{
|
||||
bool hasDepencency = false;
|
||||
int idx = 0;
|
||||
for(;;)
|
||||
{
|
||||
if( line.regData[idx] == 0 ) break;
|
||||
if( line.regData[idx] & ( WriteBit | ReadBit ) )
|
||||
{
|
||||
hasDepencency = true;
|
||||
break;
|
||||
}
|
||||
idx++;
|
||||
}
|
||||
if( hasDepencency )
|
||||
{
|
||||
TextColoredUnformatted( ImVec4( 1, 0.5f, 1, 1 ), buf );
|
||||
}
|
||||
@ -2152,6 +2166,11 @@ void SourceView::RenderAsmLine( AsmLine& line, uint32_t ipcnt, uint32_t iptotal,
|
||||
{
|
||||
ImGui::TextUnformatted( buf );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ImGui::TextUnformatted( buf );
|
||||
}
|
||||
|
||||
if( ImGui::IsItemHovered() )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user