V8RuntimeBeginCpuProfile Method (String, V8CpuProfileFlags) |
Begins collecting a new CPU profile with the specified options.
Namespace:
Microsoft.ClearScript.V8
Assembly:
ClearScript.V8 (in ClearScript.V8.dll) Version: 7.2.5
Syntaxpublic bool BeginCpuProfile(
string name,
V8CpuProfileFlags flags
)
Public Function BeginCpuProfile (
name As String,
flags As V8CpuProfileFlags
) As Boolean
public:
bool BeginCpuProfile(
String^ name,
V8CpuProfileFlags flags
)
member BeginCpuProfile :
name : string *
flags : V8CpuProfileFlags -> bool
Parameters
- name
- Type: SystemString
A name for the profile. - flags
- Type: Microsoft.ClearScript.V8V8CpuProfileFlags
Options for creating the profile.
Return Value
Type:
BooleanTrue if the profile was created successfully,
false otherwise.
Remarks
A V8 runtime can collect multiple CPU profiles simultaneously.
See Also