Skip to content

totalMem ​

totalMem devolve a memória total do sistema, em bytes.

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

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

Veja também freeMem.