This has the same functionality as SystemInfo.systemMemorySize and also mimics platform-specific behavior in the Unity Editor.