RPCS3: Notify RAM shortage, Log current and peak RAM usage

This commit is contained in:
Elad 2026-01-24 22:39:51 +02:00
parent 2702417192
commit a4523651c7
7 changed files with 70 additions and 45 deletions

View file

@ -197,6 +197,10 @@ std::set<std::string> get_one_drive_paths()
fmt::append(buf, "\nBuild: \"%s\"", rpcs3::get_verbose_version());
fmt::append(buf, "\nDate: \"%s\"", std::chrono::system_clock::now());
const auto [total, current] = utils::get_memory_usage();
fmt::append(buf, "\nRAM Usage: %dMB/%dMB (%dMB free)", current / (1024 * 1024), total / (1024 * 1024), (total - current) / (1024 * 1024));
}
std::string_view text = s_is_error_launch ? _text : buf;