// Automatically generated from TypeScript type definitions provided by // DefinitelyTyped (https://github.com/DefinitelyTyped/DefinitelyTyped), // which is licensed under the MIT license; see file DefinitelyTyped-LICENSE // in parent directory. // Type definitions for Node.js 10.5.x // Project: http://nodejs.org/ // Definitions by: Microsoft TypeScript // DefinitelyTyped // Parambir Singh // Christian Vaagland Tellnes // Wilco Bakker // Nicolas Voigt // Chigozirim C. // Flarna // Mariusz Wiktorczyk // wwwy3y3 // Deividas Bakanas // Kelvin Jin // Alvis HT Tang // Sebastian Silbermann // Hannes Magnusson // Alberto Schiabel // Klaus Meinhardt // Huw // Nicolas Even // Bruno Scheufler // Mohsen Azimi // Hoàng Văn Khải // Alexander T. // Lishude // Andrew Makarov // Zane Hannan AU // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** * @externs * @fileoverview Definitions for module "v8" */ var v8 = {}; /** * @interface */ function HeapSpaceInfo() {} /** * @type {string} */ HeapSpaceInfo.prototype.space_name; /** * @type {number} */ HeapSpaceInfo.prototype.space_size; /** * @type {number} */ HeapSpaceInfo.prototype.space_used_size; /** * @type {number} */ HeapSpaceInfo.prototype.space_available_size; /** * @type {number} */ HeapSpaceInfo.prototype.physical_space_size; /** * @return {{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}} */ v8.getHeapStatistics = function() {}; /** * @return {Array} */ v8.getHeapSpaceStatistics = function() {}; /** * @param {string} flags * @return {void} */ v8.setFlagsFromString = function(flags) {}; module.exports.getHeapStatistics = v8.getHeapStatistics; module.exports.getHeapSpaceStatistics = v8.getHeapSpaceStatistics; module.exports.setFlagsFromString = v8.setFlagsFromString;