main: Log host system memory parameters

Logs both physical memory and swapfile sizes, this is useful for support.
This commit is contained in:
Morph
2020-05-17 14:45:12 -04:00
committed by FearlessTobi
parent 94d0399876
commit a67f205cfe
4 changed files with 85 additions and 0 deletions

View File

@ -213,6 +213,10 @@ GMainWindow::GMainWindow()
LOG_INFO(Frontend, "Host CPU: {}", 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();