diff --git a/Libraries/LibCore/SystemWindows.cpp b/Libraries/LibCore/SystemWindows.cpp index 2973e1fd22f..5d6a0a19302 100644 --- a/Libraries/LibCore/SystemWindows.cpp +++ b/Libraries/LibCore/SystemWindows.cpp @@ -239,4 +239,12 @@ unsigned hardware_concurrency() return si.dwNumberOfProcessors; } +u64 physical_memory_bytes() +{ + MEMORYSTATUSEX ms = {}; + ms.dwLength = sizeof ms; + GlobalMemoryStatusEx(&ms); + return ms.ullTotalPhys; +} + }