1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-02 21:53:52 +00:00

Add crash notification to thread tooltip.

This commit is contained in:
Bartosz Taudul 2018-08-20 14:37:14 +02:00
parent 6d45434cb5
commit def6c674b2

View File

@ -1669,6 +1669,15 @@ void View::DrawZones()
ImGui::BeginTooltip();
ImGui::Text( "%s", m_worker.GetThreadString( v->id ) );
if( crash.thread == v->id )
{
ImGui::SameLine();
#ifdef TRACY_EXTENDED_FONT
ImGui::TextColored( ImVec4( 1.f, 0.2f, 0.2f, 1.f ), ICON_FA_SKULL " Crashed" );
#else
ImGui::TextColored( ImVec4( 1.f, 0.2f, 0.2f, 1.f ), "Crashed" );
#endif
}
if( !v->timeline.empty() )
{
ImGui::Separator();