V8js

V8 JS Attributes

Describes V8 JS Engine Runtime related attributes.

Attributes:

KeyStabilityValue TypeDescriptionExample Values
v8js.gc.typeDevelopmentstringThe type of garbage collection.major; minor; incremental (see more)
v8js.heap.space.nameDevelopmentstringThe name of the space type of heap memory. [1]new_space; old_space; code_space (see more)
v8js.resource.typeDevelopmentstringThe type of resource keeping the event loop active.Immediate; TCPServerWrap; TCPWrap (see more)

[1] v8js.heap.space.name: Value can be retrieved from value space_name of v8.getHeapSpaceStatistics(). The set of reported spaces depends on the V8 version the runtime embeds.


v8js.gc.type has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability
incrementalIncremental (Incremental Marking).Development
majorMajor (Mark Sweep Compact).Development
minorMinor (Scavenge).Development
weakcbWeak Callbacks (Process Weak Callbacks).Development

v8js.heap.space.name has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability
code_large_object_spaceLarge object space for code objects.Development
code_spaceCode memory space.Development
large_object_spaceLarge object memory space.Development
map_spaceMap memory space. [2]Development
new_large_object_spaceLarge object space for young-generation objects.Development
new_spaceNew memory space.Development
old_spaceOld memory space.Development
read_only_spaceRead-only memory space, holding immutable objects created at startup.Development
shared_large_object_spaceLarge object space for shared objects.Development
shared_spaceMemory space for objects shared across isolates (e.g. shared strings and structs).Development
shared_trusted_large_object_spaceLarge object space for shared trusted objects.Development
shared_trusted_spaceShared variant of the trusted memory space.Development
trusted_large_object_spaceLarge object space for trusted objects.Development
trusted_spaceMemory space for trusted objects kept outside the V8 sandbox (e.g. bytecode).Development

[2]: Only reported by Node.js <= 19; V8 merged the map space into the old space in V8 11.x.


v8js.resource.type has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability
ImmediateActive setImmediate callbacks.Development
TCPServerWrapActive TCP Servers.Development
TCPWrapActive TCP connections.Development
TimeoutActive setTimeout or setInterval timers.Development
TTYWrapActive Terminal I/O (stdin/stdout).Development