v8  3.28.71 (node 0.12.18)
V8 is Google's open source JavaScript engine
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 23 of file v8-profiler.h.

Member Function Documentation

◆ GetBailoutReason()

const char* GetBailoutReason ( ) const

Returns bailout reason for the function if the optimization was disabled for it.

◆ GetCallUid()

unsigned GetCallUid ( ) const

Returns function entry UID.

◆ GetChild()

const CpuProfileNode* GetChild ( int  index) const

Retrieves a child node by index.

◆ GetChildrenCount()

int GetChildrenCount ( ) const

Returns child nodes count of the node.

◆ GetColumnNumber()

int GetColumnNumber ( ) const

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

◆ GetFunctionName()

Handle<String> GetFunctionName ( ) const

Returns function name (empty string for anonymous functions.)

◆ GetHitCount()

unsigned GetHitCount ( ) const

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

◆ GetLineNumber()

int GetLineNumber ( ) const

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

◆ GetNodeId()

unsigned GetNodeId ( ) const

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

◆ GetScriptId()

int GetScriptId ( ) const

Returns id of the script where function is located.

◆ GetScriptResourceName()

Handle<String> GetScriptResourceName ( ) const

Returns resource name for script from where the function originates.

Field Documentation

◆ kNoColumnNumberInfo

const int kNoColumnNumberInfo = Message::kNoColumnInfo
static

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

◆ kNoLineNumberInfo

const int kNoLineNumberInfo = Message::kNoLineNumberInfo
static

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


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