Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/tsc/dts/lib.deno.ns.d.ts>Deno.MemoryUsage

A modern runtime for JavaScript and TypeScript.
Latest
interface Deno.MemoryUsage
import { type Deno } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.ns.d.ts";
const { MemoryUsage } = Deno;

Properties

rss: number

The number of bytes of the current Deno's process resident set size, which is the amount of memory occupied in main memory (RAM).

heapTotal: number

The total size of the heap for V8, in bytes.

heapUsed: number

The amount of the heap used for V8, in bytes.

external: number

Memory, in bytes, associated with JavaScript objects outside of the JavaScript isolate.