mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Add zone color boxes to zone trace.
This commit is contained in:
parent
3a304ad054
commit
1a6f04f6ce
@ -6015,6 +6015,8 @@ void View::DrawZoneInfoWindow()
|
||||
ImGui::TextDisabled( "%i.", fidx++ );
|
||||
ImGui::SameLine();
|
||||
const auto& srcloc = m_worker.GetSourceLocation( v->SrcLoc() );
|
||||
SmallColorBox( GetSrcLocColor( srcloc, 0 ) );
|
||||
ImGui::SameLine();
|
||||
const auto txt = m_worker.GetZoneName( *v, srcloc );
|
||||
ImGui::PushID( idx++ );
|
||||
auto sel = ImGui::Selectable( txt, false );
|
||||
|
Loading…
Reference in New Issue
Block a user