RAM_TOTAL get total physical RAM

get total physical RAM across operating systems https://docs.oracle.com/en/java/javase/21/docs/api/jdk.management/com/sun/management/OperatingSystemMXBean.html#getTotalPhysicalMemorySize()

Contents

Inputs

Outputs

function [bytes, b] = ram_total(backend)
arguments
  backend (1,:) string = ["java", "dotnet", "python", "sys"]
end

o = stdlib.Backend(mfilename(), backend);
bytes = o.func();

b = o.backend;

end