mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-04-07 07:25:20 +00:00
RPCS3: Notify RAM shortage, Log current and peak RAM usage
This commit is contained in:
parent
2702417192
commit
a4523651c7
7 changed files with 70 additions and 45 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue