![]() |
v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <v8-profiler.h>
Public Member Functions | |
| Handle< String > | GetFunctionName () const |
| int | GetScriptId () const |
| Handle< String > | GetScriptResourceName () const |
| int | GetLineNumber () const |
| int | GetColumnNumber () const |
| const char * | GetBailoutReason () const |
| unsigned | GetHitCount () const |
| unsigned | GetCallUid () const |
| unsigned | GetNodeId () const |
| int | GetChildrenCount () const |
| const CpuProfileNode * | GetChild (int index) const |
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 46 of file v8-profiler.h.
| const char * GetBailoutReason | ( | ) | const |
Returns bailout reason for the function if the optimization was disabled for it.
Definition at line 7055 of file api.cc.
References CodeEntry::bailout_reason(), and ProfileNode::entry().
Referenced by TEST().
| const CpuProfileNode * GetChild | ( | int | index | ) | const |
| int GetChildrenCount | ( | ) | const |
| int GetColumnNumber | ( | ) | const |
Returns function name (empty string for anonymous functions.)
Definition at line 7011 of file api.cc.
References CHECK, ProfileNode::entry(), Isolate::factory(), CodeEntry::has_name_prefix(), Factory::InternalizeUtf8String(), Handle< T >::is_null(), CodeEntry::name(), CodeEntry::name_prefix(), and Factory::NewConsString().
| unsigned GetHitCount | ( | ) | const |
| int GetLineNumber | ( | ) | const |
| unsigned GetNodeId | ( | ) | const |
| int GetScriptId | ( | ) | const |
Returns id of the script where function is located.
Definition at line 7029 of file api.cc.
References ProfileNode::entry(), and CodeEntry::script_id().
Referenced by TEST().
Returns resource name for script from where the function originates.
Definition at line 7036 of file api.cc.
References ProfileNode::entry(), Isolate::factory(), Factory::InternalizeUtf8String(), and CodeEntry::resource_name().
|
static |
Definition at line 92 of file v8-profiler.h.
|
static |
Definition at line 91 of file v8-profiler.h.