summaryrefslogtreecommitdiff
path: root/cli/rt
diff options
context:
space:
mode:
Diffstat (limited to 'cli/rt')
-rw-r--r--cli/rt/30_os.js5
-rw-r--r--cli/rt/90_deno_ns.js1
2 files changed, 6 insertions, 0 deletions
diff --git a/cli/rt/30_os.js b/cli/rt/30_os.js
index 743ecd585..adf256fc6 100644
--- a/cli/rt/30_os.js
+++ b/cli/rt/30_os.js
@@ -15,6 +15,10 @@
return sendSync("op_os_release");
}
+ function systemMemoryInfo() {
+ return sendSync("op_system_memory_info");
+ }
+
function exit(code = 0) {
sendSync("op_exit", { code });
throw new Error("Code not reachable");
@@ -50,6 +54,7 @@
execPath,
exit,
osRelease,
+ systemMemoryInfo,
hostname,
loadavg,
};
diff --git a/cli/rt/90_deno_ns.js b/cli/rt/90_deno_ns.js
index 82acdef3c..23ab12924 100644
--- a/cli/rt/90_deno_ns.js
+++ b/cli/rt/90_deno_ns.js
@@ -103,6 +103,7 @@ __bootstrap.denoNsUnstable = {
loadavg: __bootstrap.os.loadavg,
hostname: __bootstrap.os.hostname,
osRelease: __bootstrap.os.osRelease,
+ systemMemoryInfo: __bootstrap.os.systemMemoryInfo,
applySourceMap: __bootstrap.errorStack.opApplySourceMap,
formatDiagnostics: __bootstrap.errorStack.opFormatDiagnostics,
shutdown: __bootstrap.net.shutdown,