Skip to content

Commit e496cdb

Browse files
committed
Add memory amount to output from the Copy System Info editor action
This is useful information to have for out-of-memory issues.
1 parent 26df043 commit e496cdb

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)