{ "source": "doc/api/v8.markdown", "modules": [ { "textRaw": "V8", "name": "v8", "stability": 1, "stabilityText": "Experimental", "desc": "
This module exposes events and interfaces specific to the version of [V8][]\nbuilt with node. These interfaces are subject to change by upstream and are\ntherefore not covered under the stability index.\n\n
\n", "methods": [ { "textRaw": "getHeapStatistics()", "type": "method", "name": "getHeapStatistics", "desc": "Returns an object with the following properties\n\n
\n{\n total_heap_size: 7326976,\n total_heap_size_executable: 4194304,\n total_physical_size: 7326976,\n used_heap_size: 3476208,\n heap_size_limit: 1535115264\n}
\n",
"signatures": [
{
"params": []
}
]
},
{
"textRaw": "setFlagsFromString()",
"type": "method",
"name": "setFlagsFromString",
"desc": "Set additional V8 command line flags. Use with care; changing settings\nafter the VM has started may result in unpredictable behavior, including\ncrashes and data loss. Or it may simply do nothing.\n\n
\nThe V8 options available for a version of node may be determined by running\niojs --v8-options
. An unofficial, community-maintained list of options\nand their effects is available\nhere.\n\n
Usage:\n\n
\n// Print GC events to stdout for one minute.\nvar v8 = require('v8');\nv8.setFlagsFromString('--trace_gc');\nsetTimeout(function() { v8.setFlagsFromString('--notrace_gc'); }, 60e3);
\n",
"signatures": [
{
"params": []
}
]
}
],
"type": "module",
"displayName": "V8"
}
]
}