object vmMod
- Source
- vmMod.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- vmMod
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- trait BaseOptions extends Object with StObject
- Annotations
- @JSType() @native()
- trait CompileFunctionOptions extends Object with StObject with BaseOptions
- Annotations
- @JSType() @native()
- type Context = StringDictionary[UndefOr[Any]]
- trait CreateContextOptions extends Object with StObject
- Annotations
- @JSType() @native()
- trait MeasureMemoryMode extends Object with StObject
- Annotations
- @JSType()
- trait MeasureMemoryOptions extends Object with StObject
- Annotations
- @JSType() @native()
- trait MemoryMeasurement extends Object with StObject
- Annotations
- @JSType() @native()
- trait RunningScriptOptions extends Object with StObject with BaseOptions
- Annotations
- @JSType() @native()
- class Script extends Object with StObject
- Annotations
- @JSType() @JSImport("vm", "Script") @native()
- trait ScriptOptions extends Object with StObject with BaseOptions
- Annotations
- @JSType() @native()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val ^: Any
- Annotations
- @JSImport("vm", JSImport.Namespace) @native()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def compileFunction(code: java.lang.String, params: Unit, options: CompileFunctionOptions): Function
- Annotations
- @inline()
- def compileFunction(code: java.lang.String, params: Array[java.lang.String], options: CompileFunctionOptions): Function
- Annotations
- @inline()
- def compileFunction(code: java.lang.String, params: Array[java.lang.String]): Function
- Annotations
- @inline()
- def compileFunction(code: java.lang.String): Function
- Annotations
- @inline()
- def createContext(sandbox: Unit, options: CreateContextOptions): Context
- Annotations
- @inline()
- def createContext(sandbox: Context, options: CreateContextOptions): Context
- Annotations
- @inline()
- def createContext(sandbox: Context): Context
- Annotations
- @inline()
- def createContext(): Context
- Annotations
- @inline()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def isContext(sandbox: Context): Boolean
- Annotations
- @inline()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def measureMemory(options: MeasureMemoryOptions): Promise[MemoryMeasurement]
- Annotations
- @inline()
- def measureMemory(): Promise[MemoryMeasurement]
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 thatvm.measureMemory()measures the memory reachable by V8 from a specific context, whilev8.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.- Annotations
- @inline()
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def runInContext(code: java.lang.String, contextifiedSandbox: Context, options: java.lang.String): Any
- Annotations
- @inline()
- def runInContext(code: java.lang.String, contextifiedSandbox: Context, options: RunningScriptOptions): Any
- Annotations
- @inline()
- def runInContext(code: java.lang.String, contextifiedSandbox: Context): Any
- Annotations
- @inline()
- def runInNewContext(code: java.lang.String, sandbox: Unit, options: java.lang.String): Any
- Annotations
- @inline()
- def runInNewContext(code: java.lang.String, sandbox: Unit, options: RunningScriptOptions): Any
- Annotations
- @inline()
- def runInNewContext(code: java.lang.String, sandbox: Context, options: java.lang.String): Any
- Annotations
- @inline()
- def runInNewContext(code: java.lang.String, sandbox: Context, options: RunningScriptOptions): Any
- Annotations
- @inline()
- def runInNewContext(code: java.lang.String, sandbox: Context): Any
- Annotations
- @inline()
- def runInNewContext(code: java.lang.String): Any
- Annotations
- @inline()
- def runInThisContext(code: java.lang.String, options: java.lang.String): Any
- Annotations
- @inline()
- def runInThisContext(code: java.lang.String, options: RunningScriptOptions): Any
- Annotations
- @inline()
- def runInThisContext(code: java.lang.String): Any
- Annotations
- @inline()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): java.lang.String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object BaseOptions
- object CompileFunctionOptions
- object CreateContextOptions
- object MeasureMemoryMode
- object MeasureMemoryOptions
- object MemoryMeasurement
- object RunningScriptOptions
- object ScriptOptions
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated