From c5e23ee8da5d35d2f625ef7e3034bcb8b3f31409 Mon Sep 17 00:00:00 2001 From: hriss95 Date: Fri, 9 Sep 2016 14:41:06 +0100 Subject: [PATCH] Node.d.ts: Add module v8 (#10932) * Node.d.ts: Add module v8 * Node.d.ts: Changes to module "v8" --- node/node.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/node/node.d.ts b/node/node.d.ts index 412645280d441f..1aa5c272ab1f5b 100644 --- a/node/node.d.ts +++ b/node/node.d.ts @@ -2755,6 +2755,19 @@ declare module "process" { export = process; } +declare module "v8" { + interface HeapSpaceInfo { + space_name: string; + space_size: number; + space_used_size: number; + space_available_size: number; + physical_space_size: number; + } + export function getHeapStatistics() : {total_heap_size: number, total_heap_size_executable: number, total_physical_size: number, total_avaialble_size: number, used_heap_size: number, heap_size_limit: number}; + export function getHeapSpaceStatistics(): HeapSpaceInfo[]; + export function setFlagsFromString(flags: string): void; +} + declare module "timers" { export function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timer; export function clearTimeout(timeoutId: NodeJS.Timer): void;