V8 API Reference Guide for node.js v0.12.18
Public Member Functions | Static Public Attributes | List of all members
v8::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.

Member Function Documentation

const char* v8::CpuProfileNode::GetBailoutReason ( ) const

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

unsigned v8::CpuProfileNode::GetCallUid ( ) const

Returns function entry UID.

const CpuProfileNode* v8::CpuProfileNode::GetChild ( int  index) const

Retrieves a child node by index.

int v8::CpuProfileNode::GetChildrenCount ( ) const

Returns child nodes count of the node.

int v8::CpuProfileNode::GetColumnNumber ( ) const

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

Handle<String> v8::CpuProfileNode::GetFunctionName ( ) const

Returns function name (empty string for anonymous functions.)

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.

Handle<String> v8::CpuProfileNode::GetScriptResourceName ( ) const

Returns resource name for script from where the function originates.

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