diff options
author | bunnei <bunneidev@gmail.com> | 2020-05-27 22:58:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-27 22:58:51 -0400 |
commit | 640f0d1cec7cea180b44eac82624e7f382f5da4b (patch) | |
tree | c2b4a3ca8c3799e0701407f432cafe95c8e37512 /src/yuzu/main.cpp | |
parent | 630fc12d4efcdcc006573d4c3e54c7024cf8fdee (diff) | |
parent | b2af3049185567dfb48aab18957221198c8eab09 (diff) |
Merge pull request #3954 from Morph1984/log-memory-amount
main: Log host system memory parameters
Diffstat (limited to 'src/yuzu/main.cpp')
-rw-r--r-- | src/yuzu/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 0b291c7d0..270cccc77 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -65,6 +65,7 @@ static FileSys::VirtualFile VfsDirectoryCreateFileWrapper(const FileSys::Virtual #include "common/logging/backend.h" #include "common/logging/filter.h" #include "common/logging/log.h" +#include "common/memory_detect.h" #include "common/microprofile.h" #include "common/scm_rev.h" #include "common/scope_exit.h" @@ -219,6 +220,10 @@ GMainWindow::GMainWindow() LOG_INFO(Frontend, "Host CPU: {}", Common::GetCPUCaps().cpu_string); #endif LOG_INFO(Frontend, "Host OS: {}", QSysInfo::prettyProductName().toStdString()); + LOG_INFO(Frontend, "Host RAM: {:.2f} GB", + Common::GetMemInfo().TotalPhysicalMemory / 1024.0f / 1024 / 1024); + LOG_INFO(Frontend, "Host Swap: {:.2f} GB", + Common::GetMemInfo().TotalSwapMemory / 1024.0f / 1024 / 1024); UpdateWindowTitle(); show(); |