mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +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::TextDisabled( "%i.", fidx++ );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
const auto& srcloc = m_worker.GetSourceLocation( v->SrcLoc() );
|
const auto& srcloc = m_worker.GetSourceLocation( v->SrcLoc() );
|
||||||
|
SmallColorBox( GetSrcLocColor( srcloc, 0 ) );
|
||||||
|
ImGui::SameLine();
|
||||||
const auto txt = m_worker.GetZoneName( *v, srcloc );
|
const auto txt = m_worker.GetZoneName( *v, srcloc );
|
||||||
ImGui::PushID( idx++ );
|
ImGui::PushID( idx++ );
|
||||||
auto sel = ImGui::Selectable( txt, false );
|
auto sel = ImGui::Selectable( txt, false );
|
||||||
|
Loading…
Reference in New Issue
Block a user