summaryrefslogtreecommitdiff
path: root/runtime/js/90_deno_ns.js
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-12-17 17:25:51 -0500
committerGitHub <noreply@github.com>2022-12-17 23:25:51 +0100
commite9ecfdd20ac3f8a9d920bbcc4e5dd25bd262b4b7 (patch)
tree7604e5e42823656d5378d60791a4f68b66f7ca69 /runtime/js/90_deno_ns.js
parentf46df3e35940fc78163945eed33e58fafed0b06b (diff)
fix(runtime): `Deno.memoryUsage().rss` should return correct value (#17088)
This commit changes implementation of "Deno.memoryUsage()" to return correct value for "rss" field. To do that we implement a specialized function per os to retrieve this information.
Diffstat (limited to 'runtime/js/90_deno_ns.js')
-rw-r--r--runtime/js/90_deno_ns.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/js/90_deno_ns.js b/runtime/js/90_deno_ns.js
index e3ccf1b6f..94a611456 100644
--- a/runtime/js/90_deno_ns.js
+++ b/runtime/js/90_deno_ns.js
@@ -29,7 +29,7 @@
makeTempDir: __bootstrap.fs.makeTempDir,
makeTempFileSync: __bootstrap.fs.makeTempFileSync,
makeTempFile: __bootstrap.fs.makeTempFile,
- memoryUsage: core.memoryUsage,
+ memoryUsage: () => core.ops.op_runtime_memory_usage(),
mkdirSync: __bootstrap.fs.mkdirSync,
mkdir: __bootstrap.fs.mkdir,
chdir: __bootstrap.fs.chdir,