From e496cdbc3bdc7c31ed3681568c9fc32966ae10d4 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sat, 7 Jun 2025 00:02:27 +0200 Subject: [PATCH] Add memory amount to output from the Copy System Info editor action This is useful information to have for out-of-memory issues. --- editor/editor_node.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 54ebfb2c52c..a511a865787 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -5386,6 +5386,12 @@ String EditorNode::_get_system_info() const { info.push_back(vformat("%s (%d threads)", processor_name, processor_count)); + const int64_t system_ram = OS::get_singleton()->get_memory_info()["physical"]; + if (system_ram > 0) { + // If the memory info is available, display it. + info.push_back(vformat("%s memory", String::humanize_size(system_ram))); + } + return String(" - ").join(info); }