getPhysicalMemory

fnulong getPhysicalMemory() @safe nothrow

Gets physical memory size using sysctl.

Returns

Total physical memory in bytes.

Example:

auto mem = getPhysicalMemory();
writeln("Total memory: ", mem, " bytes");