v8Mod

object v8Mod
class Object
trait Matchable
class Any

Type members

Classlikes

@JSImport("v8", "DefaultDeserializer") @native @JSType

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.

@JSImport("v8", "DefaultSerializer") @native @JSType
class DefaultSerializer() extends Serializer

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.

@JSImport("v8", "Deserializer") @native @JSType
class Deserializer extends StObject
@JSType
trait DoesZapCodeSpaceFlag extends StObject
Companion
object
Companion
class
@native @JSType
trait HeapCodeStatistics extends StObject
Companion
object
Companion
class
@native @JSType
trait HeapInfo extends StObject
Companion
object
object HeapInfo
Companion
class
@native @JSType
trait HeapSpaceInfo extends StObject
Companion
object
Companion
class
@JSImport("v8", "Serializer") @native @JSType
class Serializer() extends StObject

Value members

Concrete methods

@inline
def cachedDataVersionTag(): Double

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.

@inline
def deserialize(data: TypedArray): Any

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.

@inline

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.

@inline
def serialize(value: Any): Buffer

Uses a DefaultSerializer to serialize value into a buffer.

Uses a DefaultSerializer to serialize value into a buffer.

@inline
def setFlagsFromString(flags: String): Unit
@inline
def stopCoverage(): Unit

Stops writing coverage report.

Stops writing coverage report.

@inline
def takeCoverage(): Unit

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.

@inline
def writeHeapSnapshot(): String
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 be 0 when writeHeapSnapshot() is called from the main Node.js thread or the id of a worker thread.

@inline
def writeHeapSnapshot(fileName: String): String

Concrete fields

@JSImport("v8") @native
val ^: Any