v8  3.14.5(node0.10.48)
V8 is Google's open source JavaScript engine
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.

const CpuProfileNode* GetChild ( int  index) const

Retrieves a child node by index.

int GetChildrenCount ( ) const

Returns child nodes count of the node.

Handle<String> GetFunctionName ( ) const

Returns function name (empty string for anonymous functions.)

int GetLineNumber ( ) const

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

Handle<String> GetScriptResourceName ( ) const

Returns resource name for script from where the function originates.

double GetSelfSamplesCount ( ) const

Returns the count of samples where function was currently executing.

double GetSelfTime ( ) const

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

double GetTotalSamplesCount ( ) const

Returns the count of samples where function exists.

double GetTotalTime ( ) const

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

Field Documentation

const int kNoLineNumberInfo = Message::kNoLineNumberInfo
static

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


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