v8  3.14.5(node0.10.28)
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
 
Handle< StringGetScriptResourceName () const
 
int GetLineNumber () const
 
double GetTotalTime () const
 
double GetSelfTime () const
 
double GetTotalSamplesCount () const
 
double GetSelfSamplesCount () const
 
unsigned GetCallUid () const
 
int GetChildrenCount () const
 
const CpuProfileNodeGetChild (int index) const
 

Static Public Attributes

static const int kNoLineNumberInfo = Message::kNoLineNumberInfo
 

Detailed Description

CpuProfileNode represents a node in a call graph.

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

Member Function Documentation

unsigned GetCallUid ( ) const

Returns function entry UID.

Definition at line 6013 of file api.cc.

const CpuProfileNode * GetChild ( int  index) const

Retrieves a child node by index.

Definition at line 6027 of file api.cc.

int GetChildrenCount ( ) const

Returns child nodes count of the node.

Definition at line 6020 of file api.cc.

Handle< String > GetFunctionName ( ) const

Returns function name (empty string for anonymous functions.)

Definition at line 5953 of file api.cc.

References Isolate::factory(), Factory::LookupAsciiSymbol(), and Factory::NewConsString().

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 5978 of file api.cc.

Handle< String > GetScriptResourceName ( ) const

Returns resource name for script from where the function originates.

Definition at line 5969 of file api.cc.

References Isolate::factory(), and Factory::LookupAsciiSymbol().

double GetSelfSamplesCount ( ) const

Returns the count of samples where function was currently executing.

Definition at line 6006 of file api.cc.

double GetSelfTime ( ) const

Returns self execution time of the function, in milliseconds, estimated by samples count.

Definition at line 5992 of file api.cc.

double GetTotalSamplesCount ( ) const

Returns the count of samples where function exists.

Definition at line 5999 of file api.cc.

double GetTotalTime ( ) const

Returns total (self + children) execution time of the function, in milliseconds, estimated by samples count.

Definition at line 5985 of file api.cc.

Field Documentation

const int kNoLineNumberInfo = Message::kNoLineNumberInfo
static

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