Add warning about memory limit.

This commit is contained in:
Bartosz Taudul 2024-05-05 20:33:35 +02:00
parent 56c52b8d8f
commit 2663ce1a4a
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -868,6 +868,12 @@ static void DrawContents()
view = std::make_unique<tracy::View>( RunOnMainThread, addr, port, s_fixedWidth, s_smallFont, s_bigFont, SetWindowTitleCallback, SetupScaleCallback, AttentionCallback, s_config );
}
}
if( s_config.memoryLimit )
{
ImGui::SameLine();
tracy::TextColoredUnformatted( 0xFF00FFFF, ICON_FA_TRIANGLE_EXCLAMATION );
tracy::TooltipIfHovered( "Memory limit is active" );
}
ImGui::SameLine( 0, ImGui::GetTextLineHeight() * 2 );
#ifndef TRACY_NO_FILESELECTOR