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

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

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

Information returned from a call to Deno.systemMemoryInfo.

Properties

total: number

Total installed memory in bytes.

free: number

Unused memory in bytes.

available: number

Estimation of how much memory, in bytes, is available for starting new applications, without swapping. Unlike the data provided by the cache or free fields, this field takes into account page cache and also that not all reclaimable memory will be reclaimed due to items being in use.

buffers: number

Memory used by kernel buffers.

cached: number

Memory used by the page cache and slabs.

swapTotal: number

Total swap memory.

swapFree: number

Unused swap memory.