v8  3.14.5 (node 0.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

◆ 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.

◆ GetFunctionName()

Handle<String> GetFunctionName ( ) const

Returns function name (empty string for anonymous functions.)

◆ GetLineNumber()

int GetLineNumber ( ) const

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

◆ GetScriptResourceName()

Handle<String> GetScriptResourceName ( ) const

Returns resource name for script from where the function originates.

◆ GetSelfSamplesCount()

double GetSelfSamplesCount ( ) const

Returns the count of samples where function was currently executing.

◆ GetSelfTime()

double GetSelfTime ( ) const

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

◆ GetTotalSamplesCount()

double GetTotalSamplesCount ( ) const

Returns the count of samples where function exists.

◆ GetTotalTime()

double GetTotalTime ( ) const

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

Field Documentation

◆ kNoLineNumberInfo

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: