mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Add memory amount to output from the Copy System Info editor action
This is useful information to have for out-of-memory issues.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user