V8 Project
|
CpuProfileNode represents a node in a call graph. More...
#include <v8-profiler.h>
Public Member Functions | |
Handle< String > | GetFunctionName () const |
Returns function name (empty string for anonymous functions.) More... | |
int | GetScriptId () const |
Returns id of the script where function is located. More... | |
Handle< String > | GetScriptResourceName () const |
Returns resource name for script from where the function originates. More... | |
int | GetLineNumber () const |
Returns the number, 1-based, of the line where the function originates. More... | |
int | GetColumnNumber () const |
Returns 1-based number of the column where the function originates. More... | |
const char * | GetBailoutReason () const |
Returns bailout reason for the function if the optimization was disabled for it. More... | |
unsigned | GetHitCount () const |
Returns the count of samples where the function was currently executing. More... | |
unsigned | GetCallUid () const |
Returns function entry UID. More... | |
unsigned | GetNodeId () const |
Returns id of the node. More... | |
int | GetChildrenCount () const |
Returns child nodes count of the node. More... | |
const CpuProfileNode * | GetChild (int index) const |
Retrieves a child node by index. More... | |
Static Public Attributes | |
static const int | kNoLineNumberInfo = Message::kNoLineNumberInfo |
static const int | kNoColumnNumberInfo = Message::kNoColumnInfo |
CpuProfileNode represents a node in a call graph.
Definition at line 23 of file v8-profiler.h.
const char * v8::CpuProfileNode::GetBailoutReason | ( | ) | const |
Returns bailout reason for the function if the optimization was disabled for it.
Definition at line 7085 of file api.cc.
References v8::internal::CodeEntry::bailout_reason(), and v8::internal::ProfileNode::entry().
unsigned v8::CpuProfileNode::GetCallUid | ( | ) | const |
Returns function entry UID.
const CpuProfileNode * v8::CpuProfileNode::GetChild | ( | int | index | ) | const |
int v8::CpuProfileNode::GetChildrenCount | ( | ) | const |
Returns child nodes count of the node.
int v8::CpuProfileNode::GetColumnNumber | ( | ) | const |
Returns function name (empty string for anonymous functions.)
Definition at line 7041 of file api.cc.
References v8::internal::ProfileNode::entry(), v8::internal::Isolate::factory(), v8::internal::CodeEntry::has_name_prefix(), name, v8::internal::CodeEntry::name(), and v8::internal::CodeEntry::name_prefix().
unsigned v8::CpuProfileNode::GetHitCount | ( | ) | const |
Returns the count of samples where the function was currently executing.
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.
unsigned v8::CpuProfileNode::GetNodeId | ( | ) | const |
Returns id of the node.
The id is unique within the tree
int v8::CpuProfileNode::GetScriptId | ( | ) | const |
Returns id of the script where function is located.
Definition at line 7059 of file api.cc.
References v8::internal::ProfileNode::entry(), and v8::internal::CodeEntry::script_id().
Returns resource name for script from where the function originates.
Definition at line 7066 of file api.cc.
References v8::internal::ProfileNode::entry(), v8::internal::Isolate::factory(), and v8::internal::CodeEntry::resource_name().
|
static |
Definition at line 69 of file v8-profiler.h.
|
static |
Definition at line 68 of file v8-profiler.h.