v8Mod
Type members
Classlikes
A subclass of Serializer
that serializes TypedArray
(in particular Buffer
) and DataView
objects as host objects,
and only stores the part of their underlying ArrayBuffers
that they are referring to.
A subclass of Serializer
that serializes TypedArray
(in particular Buffer
) and DataView
objects as host objects,
and only stores the part of their underlying ArrayBuffers
that they are referring to.
A subclass of Serializer
that serializes TypedArray
(in particular Buffer
) and DataView
objects as host objects,
and only stores the part of their underlying ArrayBuffers
that they are referring to.
A subclass of Serializer
that serializes TypedArray
(in particular Buffer
) and DataView
objects as host objects,
and only stores the part of their underlying ArrayBuffers
that they are referring to.
Value members
Concrete methods
Returns an integer representing a "version tag" derived from the V8 version, command line flags and detected CPU features. This is useful for determining whether a vm.Script cachedData buffer is compatible with this instance of V8.
Returns an integer representing a "version tag" derived from the V8 version, command line flags and detected CPU features. This is useful for determining whether a vm.Script cachedData buffer is compatible with this instance of V8.
Uses a DefaultDeserializer
with default options to read a JS value from a buffer.
Uses a DefaultDeserializer
with default options to read a JS value from a buffer.
Generates a snapshot of the current V8 heap and returns a Readable Stream that may be used to read the JSON serialized representation. This conversation was marked as resolved by joyeecheung This JSON stream format is intended to be used with tools such as Chrome DevTools. The JSON schema is undocumented and specific to the V8 engine, and may change from one version of V8 to the next.
Generates a snapshot of the current V8 heap and returns a Readable Stream that may be used to read the JSON serialized representation. This conversation was marked as resolved by joyeecheung This JSON stream format is intended to be used with tools such as Chrome DevTools. The JSON schema is undocumented and specific to the V8 engine, and may change from one version of V8 to the next.
Uses a DefaultSerializer
to serialize value into a buffer.
Uses a DefaultSerializer
to serialize value into a buffer.
Begins writing coverage report based on the NODE_V8_COVERAGE
env var.
Noop is the env var is not set.
Begins writing coverage report based on the NODE_V8_COVERAGE
env var.
Noop is the env var is not set.
- Value Params
- fileName
The file path where the V8 heap snapshot is to be saved. If not specified, a file name with the pattern
'Heap-${yyyymmdd}-${hhmmss}-${pid}-${thread_id}.heapsnapshot'
will be generated, where{pid}
will be the PID of the Node.js process,{thread_id}
will be0
whenwriteHeapSnapshot()
is called from the main Node.js thread or the id of a worker thread.