mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Go to white-hot color for ip count over max.
This commit is contained in:
parent
126a587aa3
commit
ac37898331
@ -698,9 +698,14 @@ void SourceView::RenderSymbolSourceView( uint32_t iptotal, unordered_flat_map<ui
|
||||
const auto g = int( ( ipPercent - 0.5f ) * 511 );
|
||||
color = 0xFF0000FF | ( g << 8 );
|
||||
}
|
||||
else if( ipPercent <= 2.f )
|
||||
{
|
||||
const auto b = int( ( ipPercent - 1.f ) * 255 );
|
||||
color = 0xFF00FFFF | ( b << 16 );
|
||||
}
|
||||
else
|
||||
{
|
||||
color = 0xFF00FFFF;
|
||||
color = 0xFFFFFFFF;
|
||||
}
|
||||
draw->AddRectFilled( ImVec2( x14, ly ), ImVec2( x34, ly+3 ), color );
|
||||
}
|
||||
@ -951,9 +956,14 @@ uint64_t SourceView::RenderSymbolAsmView( uint32_t iptotal, unordered_flat_map<u
|
||||
const auto g = int( ( ipPercent - 0.5f ) * 511 );
|
||||
color = 0xFF0000FF | ( g << 8 );
|
||||
}
|
||||
else if( ipPercent <= 2.f )
|
||||
{
|
||||
const auto b = int( ( ipPercent - 1.f ) * 255 );
|
||||
color = 0xFF00FFFF | ( b << 16 );
|
||||
}
|
||||
else
|
||||
{
|
||||
color = 0xFF00FFFF;
|
||||
color = 0xFFFFFFFF;
|
||||
}
|
||||
draw->AddRectFilled( ImVec2( x14, ly ), ImVec2( x34, ly+3 ), color );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user