#include <v8-profiler.h>
CpuProfileNode represents a node in a call graph.
◆ SourceType
Enumerator |
---|
kScript | |
kBuiltin | |
kCallback | |
kInternal | |
kUnresolved | |
◆ GetBailoutReason()
const char * v8::CpuProfileNode::GetBailoutReason |
( |
| ) |
const |
Returns bailout reason for the function if the optimization was disabled for it.
◆ GetChild()
const CpuProfileNode * v8::CpuProfileNode::GetChild |
( |
int |
index | ) |
const |
Retrieves a child node by index.
◆ GetChildrenCount()
int v8::CpuProfileNode::GetChildrenCount |
( |
| ) |
const |
Returns child nodes count of the node.
◆ GetColumnNumber()
int v8::CpuProfileNode::GetColumnNumber |
( |
| ) |
const |
Returns 1-based number of the column where the function originates. kNoColumnNumberInfo if no column number information is available.
◆ GetDeoptInfos()
Retrieves deopt infos for the node.
◆ GetFunctionName()
Local< String > v8::CpuProfileNode::GetFunctionName |
( |
| ) |
const |
Returns function name (empty string for anonymous functions.)
◆ GetFunctionNameStr()
const char * v8::CpuProfileNode::GetFunctionNameStr |
( |
| ) |
const |
Returns function name (empty string for anonymous functions.) The string ownership is not passed to the caller. It stays valid until profile is deleted. The function is thread safe.
◆ GetHitCount()
unsigned v8::CpuProfileNode::GetHitCount |
( |
| ) |
const |
Returns the count of samples where the function was currently executing.
◆ GetHitLineCount()
unsigned int v8::CpuProfileNode::GetHitLineCount |
( |
| ) |
const |
Returns the number of the function's source lines that collect the samples.
◆ GetLineNumber()
int v8::CpuProfileNode::GetLineNumber |
( |
| ) |
const |
Returns the number, 1-based, of the line where the function originates. kNoLineNumberInfo if no line number information is available.
◆ GetLineTicks()
bool v8::CpuProfileNode::GetLineTicks |
( |
LineTick * |
entries, |
|
|
unsigned int |
length |
|
) |
| const |
Returns the set of source lines that collect the samples. The caller allocates buffer and responsible for releasing it. True if all available entries are copied, otherwise false. The function copies nothing if buffer is not large enough.
◆ GetNodeId()
unsigned v8::CpuProfileNode::GetNodeId |
( |
| ) |
const |
Returns id of the node. The id is unique within the tree
◆ GetParent()
Retrieves the ancestor node, or null if the root.
◆ GetScriptId()
int v8::CpuProfileNode::GetScriptId |
( |
| ) |
const |
Returns id of the script where function is located.
◆ GetScriptResourceName()
Local< String > v8::CpuProfileNode::GetScriptResourceName |
( |
| ) |
const |
Returns resource name for script from where the function originates.
◆ GetScriptResourceNameStr()
const char * v8::CpuProfileNode::GetScriptResourceNameStr |
( |
| ) |
const |
Returns resource name for script from where the function originates. The string ownership is not passed to the caller. It stays valid until profile is deleted. The function is thread safe.
◆ GetSourceType()
SourceType v8::CpuProfileNode::GetSourceType |
( |
| ) |
const |
Gets the type of the source which the node was captured from.
◆ IsScriptSharedCrossOrigin()
bool v8::CpuProfileNode::IsScriptSharedCrossOrigin |
( |
| ) |
const |
Return true if the script from where the function originates is flagged as being shared cross-origin.
◆ kNoColumnNumberInfo
◆ kNoLineNumberInfo
const int v8::CpuProfileNode::kNoLineNumberInfo = Message::kNoLineNumberInfo |
|
static |
The documentation for this class was generated from the following file: