1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 04:23:51 +00:00

Add fiber labels to places with thread information.

This commit is contained in:
Bartosz Taudul 2021-11-02 01:48:28 +01:00
parent e5c44afdcb
commit 0718330016
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -3470,6 +3470,11 @@ void View::DrawZones()
ImGui::SameLine();
TextColoredUnformatted( ImVec4( 1.f, 0.2f, 0.2f, 1.f ), ICON_FA_SKULL " Crashed" );
}
if( v->isFiber )
{
ImGui::SameLine();
TextColoredUnformatted( ImVec4( 0.2f, 0.6f, 0.2f, 1.f ), "Fiber" );
}
const auto ctx = m_worker.GetContextSwitchData( v->id );
@ -9196,6 +9201,11 @@ void View::DrawOptions()
}
}
}
if( t->isFiber )
{
ImGui::SameLine();
TextColoredUnformatted( ImVec4( 0.2f, 0.6f, 0.2f, 1.f ), "Fiber" );
}
ImGui::SameLine();
ImGui::TextDisabled( "%s top level zones", RealToString( t->timeline.size() ) );
idx++;