From 388274e02ea7e054f0bbbe4f863dc32447c5971d Mon Sep 17 00:00:00 2001 From: Muthu Kumar Date: Tue, 22 Jun 2021 06:33:00 +0530 Subject: fix: move stable/unstable types/APIs to their correct places (#10880) - Moved ppid and memoryUsage types from deno.unstable to deno.ns. - Moved sleepSync to unstable object, shutdown to stable object. --- cli/dts/lib.deno.ns.d.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'cli/dts/lib.deno.ns.d.ts') diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index 2032757bb..8ebf16150 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -90,6 +90,24 @@ declare namespace Deno { /** The current process id of the runtime. */ export const pid: number; + /** + * The pid of the current process's parent. + */ + export const ppid: number; + + export interface MemoryUsage { + rss: number; + heapTotal: number; + heapUsed: number; + external: number; + } + + /** + * Returns an object describing the memory usage of the Deno process measured + * in bytes. + */ + export function memoryUsage(): MemoryUsage; + /** Reflects the `NO_COLOR` environment variable at program start. * * See: https://no-color.org/ */ -- cgit v1.2.3