ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.V8
V8ScriptEngine Class
V8ScriptEngine Methods
BeginCpuProfile Method
BeginCpuProfile(String) Method
BeginCpuProfile(String, V8CpuProfileFlags) Method

# V8ScriptEngineBeginCpuProfile(String) Method

Begins collecting a new CPU profile.
Namespace: Microsoft.ClearScript.V8
Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public bool BeginCpuProfile(
    	string name
    )

    Public Function BeginCpuProfile (
    	name As String
    ) As Boolean

    public:
    bool BeginCpuProfile(
    	String^ name
    )

    member BeginCpuProfile :
            name : string -> bool

#### Parameters

name String
  A name for the profile.

#### Return Value

Boolean
True if the profile was created successfully, false otherwise.
Remarks
A V8 script engine can collect multiple CPU profiles simultaneously.
See Also

#### Reference

V8ScriptEngine Class
BeginCpuProfile Overload
Microsoft.ClearScript.V8 Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft