Skip to content

Commit 17dc4cc

Browse files
committed
Merge pull request #107240 from Calinou/editor-copy-system-info-add-memory
Add memory amount to output from the Copy System Info editor action
2 parents e2075d3 + e496cdb commit 17dc4cc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

editor/editor_node.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5386,6 +5386,12 @@ String EditorNode::_get_system_info() const {
53865386

53875387
info.push_back(vformat("%s (%d threads)", processor_name, processor_count));
53885388

5389+
const int64_t system_ram = OS::get_singleton()->get_memory_info()["physical"];
5390+
if (system_ram > 0) {
5391+
// If the memory info is available, display it.
5392+
info.push_back(vformat("%s memory", String::humanize_size(system_ram)));
5393+
}
5394+
53895395
return String(" - ").join(info);
53905396
}
53915397

0 commit comments

Comments
 (0)