Skip to content

totalMem ​

totalMem returns the total system memory, in bytes.

SignaturetotalMem(): u64
tyrus
import { totalMem } from "tyrus:os";

const total: u64 = totalMem();
print(`${total} bytes total`);

See also freeMem.