v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CpuProfileNode Class Reference

#include <v8-profiler.h>

Public Member Functions

Handle< StringGetFunctionName () const
 
int GetScriptId () const
 
Handle< StringGetScriptResourceName () const
 
int GetLineNumber () const
 
int GetColumnNumber () const
 
const char * GetBailoutReason () const
 
unsigned GetHitCount () const
 
unsigned GetCallUid () const
 
unsigned GetNodeId () const
 
int GetChildrenCount () const
 
const CpuProfileNodeGetChild (int index) const
 

Static Public Attributes

static const int kNoLineNumberInfo = Message::kNoLineNumberInfo
 
static const int kNoColumnNumberInfo = Message::kNoColumnInfo
 

Detailed Description

CpuProfileNode represents a node in a call graph.

Definition at line 46 of file v8-profiler.h.

Member Function Documentation

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().

unsigned GetCallUid ( ) const

Returns function entry UID.

Definition at line 7066 of file api.cc.

const CpuProfileNode * GetChild ( int  index) const

Retrieves a child node by index.

Definition at line 7081 of file api.cc.

int GetChildrenCount ( ) const

Returns child nodes count of the node.

Definition at line 7076 of file api.cc.

Referenced by TEST().

int GetColumnNumber ( ) const

Returns 1-based number of the column where the function originates. kNoColumnNumberInfo if no column number information is available.

Definition at line 7049 of file api.cc.

Handle< String > GetFunctionName ( ) const
unsigned GetHitCount ( ) const

Returns the count of samples where the function was currently executing.

Definition at line 7061 of file api.cc.

Referenced by TEST().

int GetLineNumber ( ) const

Returns the number, 1-based, of the line where the function originates. kNoLineNumberInfo if no line number information is available.

Definition at line 7044 of file api.cc.

unsigned GetNodeId ( ) const

Returns id of the node. The id is unique within the tree

Definition at line 7071 of file api.cc.

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().

Handle< String > GetScriptResourceName ( ) const

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().

Field Documentation

const int kNoColumnNumberInfo = Message::kNoColumnInfo
static

Definition at line 92 of file v8-profiler.h.

const int kNoLineNumberInfo = Message::kNoLineNumberInfo
static

Definition at line 91 of file v8-profiler.h.


The documentation for this class was generated from the following files: