Click or drag to resize

V8Runtime Class

Represents an instance of the V8 runtime.
Inheritance Hierarchy
SystemObject
  Microsoft.ClearScript.V8V8Runtime

Namespace: Microsoft.ClearScript.V8
Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.3.5
Syntax
public sealed class V8Runtime : IDisposable

The V8Runtime type exposes the following members.

Constructors
 NameDescription
Public methodV8Runtime Initializes a new V8 runtime instance.
Public methodV8Runtime(String) Initializes a new V8 runtime instance with the specified name.
Public methodV8Runtime(V8RuntimeConstraints) Initializes a new V8 runtime instance with the specified resource constraints.
Public methodV8Runtime(V8RuntimeFlags) Initializes a new V8 runtime instance with the specified options.
Public methodV8Runtime(String, V8RuntimeConstraints) Initializes a new V8 runtime instance with the specified name and resource constraints.
Public methodV8Runtime(String, V8RuntimeFlags) Initializes a new V8 runtime instance with the specified name and options.
Public methodV8Runtime(V8RuntimeConstraints, V8RuntimeFlags) Initializes a new V8 runtime instance with the specified resource constraints and options.
Public methodV8Runtime(V8RuntimeFlags, Int32) Initializes a new V8 runtime instance with the specified options and debug port.
Public methodV8Runtime(String, V8RuntimeConstraints, V8RuntimeFlags) Initializes a new V8 runtime instance with the specified name, resource constraints, and options.
Public methodV8Runtime(String, V8RuntimeFlags, Int32) Initializes a new V8 runtime instance with the specified name, options, and debug port.
Public methodV8Runtime(V8RuntimeConstraints, V8RuntimeFlags, Int32) Initializes a new V8 runtime instance with the specified resource constraints, options, and debug port.
Public methodV8Runtime(String, V8RuntimeConstraints, V8RuntimeFlags, Int32) Initializes a new V8 runtime instance with the specified name, resource constraints, options, and debug port.
Top
Properties
 NameDescription
Public propertyCpuProfileSampleInterval Gets or sets the time interval between automatic CPU profile samples, in microseconds.
Public propertyDocumentSettings Gets or sets the V8 runtime's document settings.
Public propertyEnableInterruptPropagation Enables or disables interrupt propagation in the V8 runtime.
Public propertyFormatCode Enables or disables script code formatting.
Public propertyHeapSizeSampleInterval Gets or sets the minimum time interval between consecutive heap size samples.
Public propertyHeapSizeViolationPolicy Gets or sets the V8 runtime's behavior in response to a violation of the maximum heap size.
Public propertyMaxHeapSize Gets or sets a soft limit for the size of the V8 runtime's heap.
Public propertyMaxStackUsage Gets or sets the maximum amount by which the stack is permitted to grow during script execution.
Public propertyName Gets the name associated with the V8 runtime instance.
Top
Methods
 NameDescription
Public methodBeginCpuProfile(String) Begins collecting a new CPU profile.
Public methodBeginCpuProfile(String, V8CpuProfileFlags) Begins collecting a new CPU profile with the specified options.
Public methodCollectCpuProfileSample Collects a sample in all CPU profiles active in the V8 runtime.
Public methodCollectGarbage Performs garbage collection.
Public methodCompile(String) Creates a compiled script.
Public methodCompile(DocumentInfo, String) Creates a compiled script with the specified document meta-information.
Public methodCompile(String, String) Creates a compiled script with an associated document name.
Public methodCompile(String, V8CacheKind, Byte) Creates a compiled script, generating cache data for accelerated recompilation.
Public methodCompile(DocumentInfo, String, V8CacheKind, Byte) Creates a compiled script with the specified document meta-information, generating cache data for accelerated recompilation.
Public methodCompile(String, V8CacheKind, Byte, Boolean) Creates a compiled script, consuming previously generated cache data.
Public methodCompile(String, String, V8CacheKind, Byte) Creates a compiled script with an associated document name, generating cache data for accelerated recompilation.
Public methodCompile(DocumentInfo, String, V8CacheKind, Byte, Boolean) Creates a compiled script with the specified document meta-information, consuming previously generated cache data.
Public methodCompile(String, String, V8CacheKind, Byte, Boolean) Creates a compiled script with an associated document name, consuming previously generated cache data.
Public methodCompileDocument(String) Loads and compiles a script document.
Public methodCompileDocument(String, DocumentCategory) Loads and compiles a document with the specified category.
Public methodCompileDocument(String, DocumentCategory, DocumentContextCallback) Loads and compiles a document with the specified category and context callback.
Public methodCompileDocument(String, V8CacheKind, Byte) Loads and compiles a script document, generating cache data for accelerated recompilation.
Public methodCompileDocument(String, DocumentCategory, V8CacheKind, Byte) Loads and compiles a document with the specified category, generating cache data for accelerated recompilation.
Public methodCompileDocument(String, V8CacheKind, Byte, Boolean) Loads and compiles a script document, consuming previously generated cache data.
Public methodCompileDocument(String, DocumentCategory, DocumentContextCallback, V8CacheKind, Byte) Loads and compiles a document with the specified category and context callback, generating cache data for accelerated recompilation.
Public methodCompileDocument(String, DocumentCategory, V8CacheKind, Byte, Boolean) Loads and compiles a document with the specified category, consuming previously generated cache data.
Public methodCompileDocument(String, DocumentCategory, DocumentContextCallback, V8CacheKind, Byte, Boolean) Loads and compiles a document with the specified category and context callback, consuming previously generated cache data.
Public methodCreateScriptEngine Creates a new V8 script engine instance.
Public methodCreateScriptEngine(String) Creates a new V8 script engine instance with the specified name.
Public methodCreateScriptEngine(V8ScriptEngineFlags) Creates a new V8 script engine instance with the specified options.
Public methodCreateScriptEngine(String, V8ScriptEngineFlags) Creates a new V8 script engine instance with the specified name and options.
Public methodCreateScriptEngine(V8ScriptEngineFlags, Int32) Creates a new V8 script engine instance with the specified options and debug port.
Public methodCreateScriptEngine(String, V8ScriptEngineFlags, Int32) Creates a new V8 script engine instance with the specified name, options, and debug port.
Public methodDispose Releases all resources used by the V8 runtime.
Public methodEndCpuProfile Completes and returns a CPU profile.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetHeapInfo Returns memory usage information.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodWriteHeapSnapshot Writes a heap snapshot to the given stream.
Top
See Also