summaryrefslogtreecommitdiff
path: root/core/lib.deno_core.d.ts
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@gmail.com>2021-03-23 15:33:06 +0100
committerGitHub <noreply@github.com>2021-03-23 15:33:06 +0100
commit876f075ddebfaa69e8b80c5556a5da3c47a98764 (patch)
tree3fae034db15eeed8ca45b4db3d8f898df18a8e76 /core/lib.deno_core.d.ts
parent26f7a3f185881c12081eb6d3cedbf9e637376d86 (diff)
feat(core): Deno.core.heapStats() (#9659)
This commit implements "Deno.core.heapStats()" function that allows to programatically measure isolate heap-usage.
Diffstat (limited to 'core/lib.deno_core.d.ts')
-rw-r--r--core/lib.deno_core.d.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/lib.deno_core.d.ts b/core/lib.deno_core.d.ts
index 1efb92dc6..004ed0529 100644
--- a/core/lib.deno_core.d.ts
+++ b/core/lib.deno_core.d.ts
@@ -35,5 +35,8 @@ declare namespace Deno {
/** Close the resource with the specified op id. */
function close(rid: number): void;
+
+ /** Get heap stats for current isolate/worker */
+ function heapStats(): Record<string, number>;
}
}