nodeVmMod
object nodeVmMod
class Object
trait Matchable
class Any
Value members
Concrete methods
@inline
Measure the memory known to V8 and used by the current execution context or a specified context.
Measure the memory known to V8 and used by the current execution context or a specified context.
The format of the object that the returned Promise may resolve with is specific to the V8 engine and may change from one version of V8 to the next.
The returned result is different from the statistics returned by
v8.getHeapSpaceStatistics()
in that vm.measureMemory()
measures
the memory reachable by V8 from a specific context, while
v8.getHeapSpaceStatistics()
measures the memory used by an instance
of V8 engine, which can switch among multiple contexts that reference
objects in the heap of one engine.