Would adding a GetTotalPhysicalMemory() function (which would return the size of installed RAM in bytes) be useful? I have this implemented for MSW, macOS, and remaining Unices if anyone would like for me to add this. I use this for logging system information for crash reports myself; perhaps others would to.
If so, where would be the best place for it? Perhaps wxPlatformInfo, although this isn't arguably a platform feature. Or it could be a global wxGetTotalPhysicalMemory() function.
P.S.
MS calls it "physically installed system memory" (https://learn.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-getphysicallyinstalledsystemmemory?redirectedfrom=MSDN), hence the API that I suggest. I could say GetTotalRAM() instead.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
We have a global wxGetFreeMemory() function, so adding a new function for this wouldn't be out of place, but maybe we should indeed add some wxSystemHardwareInfo similar to wxPlatformInfo to avoid having multiple free functions — especially if we plan to add more of them or if its implementation can reuse some parts of wxGetFreeMemory() (which is probably the case for Windows, where we could use GlobalMemoryStatusEx() for both).
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()