mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Add zone color boxes to time distribution table.
This commit is contained in:
parent
c294e62f5e
commit
13a7444f03
@ -6361,7 +6361,10 @@ void View::DrawZoneInfoWindow()
|
|||||||
}
|
}
|
||||||
for( auto& v : vec )
|
for( auto& v : vec )
|
||||||
{
|
{
|
||||||
ImGui::TextUnformatted( m_worker.GetZoneName( m_worker.GetSourceLocation( v->first ) ) );
|
const auto& sl = m_worker.GetSourceLocation( v->first );
|
||||||
|
SmallColorBox( GetSrcLocColor( sl, 0 ) );
|
||||||
|
ImGui::SameLine();
|
||||||
|
ImGui::TextUnformatted( m_worker.GetZoneName( sl ) );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::TextDisabled( "(\xc3\x97%s)", RealToString( v->second.count, true ) );
|
ImGui::TextDisabled( "(\xc3\x97%s)", RealToString( v->second.count, true ) );
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user