From 2663ce1a4aa8fb0fd5bdc50ccbd5bbf9362def27 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 5 May 2024 20:33:35 +0200 Subject: [PATCH] Add warning about memory limit. --- profiler/src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index e8540842..c313eda3 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -868,6 +868,12 @@ static void DrawContents() view = std::make_unique( 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