ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.V8
V8Runtime Class
V8Runtime Methods
BeginCpuProfile Method
CollectCpuProfileSample Method
CollectGarbage Method
Compile Method
CompileDocument Method
CreateScriptEngine Method
Dispose Method
EndCpuProfile Method
GetHeapInfo Method
WriteHeapSnapshot Method

# V8RuntimeWriteHeapSnapshot Method

Writes a heap snapshot to the given stream.
Namespace: Microsoft.ClearScript.V8
Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public void WriteHeapSnapshot(
    	Stream stream
    )

    Public Sub WriteHeapSnapshot (
    	stream As Stream
    )

    public:
    void WriteHeapSnapshot(
    	Stream^ stream
    )

    member WriteHeapSnapshot :
            stream : Stream -> unit

#### Parameters

stream Stream
  The stream to which to write the heap snapshot.

Remarks
This method generates a heap snapshot in JSON format with ASCII encoding.
See Also

#### Reference

V8Runtime Class
Microsoft.ClearScript.V8 Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft