Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

MeasureMemoryMode

MeasureMemoryMode: "summary" | "detailed"

Functions

compileFunction

  • Parameters

    Returns Function

createContext

isContext

  • isContext(sandbox: Context): boolean
  • Parameters

    Returns boolean

measureMemory

  • 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.

    experimental

    Parameters

    Returns Promise<MemoryMeasurement>

runInContext

  • Parameters

    Returns any

runInNewContext

  • Parameters

    Returns any

runInThisContext

  • Parameters

    Returns any

Generated using TypeDoc