v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::ProfileNode Class Reference

#include <profile-generator.h>

Collaboration diagram for v8::internal::ProfileNode:

Classes

struct  Equals
 
struct  Hasher
 

Public Member Functions

 ProfileNode (ProfileTree *tree, CodeEntry *entry, ProfileNode *parent, int line_number=0)
 
 ~ProfileNode ()
 
 ProfileNode (const ProfileNode &)=delete
 
ProfileNodeoperator= (const ProfileNode &)=delete
 
ProfileNodeFindChild (CodeEntry *entry, int line_number=v8::CpuProfileNode::kNoLineNumberInfo)
 
ProfileNodeFindOrAddChild (CodeEntry *entry, int line_number=0)
 
void IncrementSelfTicks ()
 
void IncreaseSelfTicks (unsigned amount)
 
void IncrementLineTicks (int src_line)
 
CodeEntryentry () const
 
unsigned self_ticks () const
 
const std::vector< ProfileNode * > * children () const
 
unsigned id () const
 
ProfileNodeparent () const
 
int line_number () const
 
CpuProfileNode::SourceType source_type () const
 
unsigned int GetHitLineCount () const
 
bool GetLineTicks (v8::CpuProfileNode::LineTick *entries, unsigned int length) const
 
void CollectDeoptInfo (CodeEntry *entry)
 
const std::vector< CpuProfileDeoptInfo > & deopt_infos () const
 
Isolateisolate () const
 
void Print (int indent) const
 

Private Attributes

ProfileTreetree_
 
CodeEntryentry_
 
unsigned self_ticks_
 
std::unordered_map< CodeEntryAndLineNumber, ProfileNode *, Hasher, Equalschildren_
 
int line_number_
 
std::vector< ProfileNode * > children_list_
 
ProfileNodeparent_
 
unsigned id_
 
std::unordered_map< int, int > line_ticks_
 
std::vector< CpuProfileDeoptInfodeopt_infos_
 

Detailed Description

Definition at line 292 of file profile-generator.h.

Constructor & Destructor Documentation

◆ ProfileNode() [1/2]

v8::internal::ProfileNode::ProfileNode ( ProfileTree * tree,
CodeEntry * entry,
ProfileNode * parent,
int line_number = 0 )
inline

Definition at line 33 of file profile-generator-inl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~ProfileNode()

v8::internal::ProfileNode::~ProfileNode ( )

Definition at line 332 of file profile-generator.cc.

Here is the call graph for this function:

◆ ProfileNode() [2/2]

v8::internal::ProfileNode::ProfileNode ( const ProfileNode & )
delete

Member Function Documentation

◆ children()

const std::vector< ProfileNode * > * v8::internal::ProfileNode::children ( ) const
inline

Definition at line 310 of file profile-generator.h.

Here is the caller graph for this function:

◆ CollectDeoptInfo()

void v8::internal::ProfileNode::CollectDeoptInfo ( CodeEntry * entry)

Definition at line 369 of file profile-generator.cc.

Here is the call graph for this function:

◆ deopt_infos()

const std::vector< CpuProfileDeoptInfo > & v8::internal::ProfileNode::deopt_infos ( ) const
inline

Definition at line 324 of file profile-generator.h.

Here is the caller graph for this function:

◆ entry()

CodeEntry * v8::internal::ProfileNode::entry ( ) const
inline

Definition at line 308 of file profile-generator.h.

Here is the caller graph for this function:

◆ FindChild()

ProfileNode * v8::internal::ProfileNode::FindChild ( CodeEntry * entry,
int line_number = v8::CpuProfileNode::kNoLineNumberInfo )

Definition at line 374 of file profile-generator.cc.

Here is the call graph for this function:

◆ FindOrAddChild()

ProfileNode * v8::internal::ProfileNode::FindOrAddChild ( CodeEntry * entry,
int line_number = 0 )

Definition at line 379 of file profile-generator.cc.

Here is the call graph for this function:

◆ GetHitLineCount()

unsigned int v8::internal::ProfileNode::GetHitLineCount ( ) const
inline

Definition at line 318 of file profile-generator.h.

Here is the caller graph for this function:

◆ GetLineTicks()

bool v8::internal::ProfileNode::GetLineTicks ( v8::CpuProfileNode::LineTick * entries,
unsigned int length ) const

Definition at line 405 of file profile-generator.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ id()

unsigned v8::internal::ProfileNode::id ( ) const
inline

Definition at line 311 of file profile-generator.h.

◆ IncreaseSelfTicks()

void v8::internal::ProfileNode::IncreaseSelfTicks ( unsigned amount)
inline

Definition at line 305 of file profile-generator.h.

◆ IncrementLineTicks()

void v8::internal::ProfileNode::IncrementLineTicks ( int src_line)

Definition at line 392 of file profile-generator.cc.

◆ IncrementSelfTicks()

void v8::internal::ProfileNode::IncrementSelfTicks ( )
inline

Definition at line 304 of file profile-generator.h.

◆ isolate()

Isolate * v8::internal::ProfileNode::isolate ( ) const
inline

Definition at line 45 of file profile-generator-inl.h.

Here is the call graph for this function:

◆ line_number()

int v8::internal::ProfileNode::line_number ( ) const
inline

Definition at line 313 of file profile-generator.h.

Here is the caller graph for this function:

◆ operator=()

ProfileNode & v8::internal::ProfileNode::operator= ( const ProfileNode & )
delete

◆ parent()

ProfileNode * v8::internal::ProfileNode::parent ( ) const
inline

Definition at line 312 of file profile-generator.h.

◆ Print()

void v8::internal::ProfileNode::Print ( int indent) const

Definition at line 424 of file profile-generator.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ self_ticks()

unsigned v8::internal::ProfileNode::self_ticks ( ) const
inline

Definition at line 309 of file profile-generator.h.

◆ source_type()

CpuProfileNode::SourceType v8::internal::ProfileNode::source_type ( ) const

Definition at line 336 of file profile-generator.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ children_

std::unordered_map<CodeEntryAndLineNumber, ProfileNode*, Hasher, Equals> v8::internal::ProfileNode::children_
private

Definition at line 349 of file profile-generator.h.

◆ children_list_

std::vector<ProfileNode*> v8::internal::ProfileNode::children_list_
private

Definition at line 351 of file profile-generator.h.

◆ deopt_infos_

std::vector<CpuProfileDeoptInfo> v8::internal::ProfileNode::deopt_infos_
private

Definition at line 357 of file profile-generator.h.

◆ entry_

CodeEntry* v8::internal::ProfileNode::entry_
private

Definition at line 346 of file profile-generator.h.

◆ id_

unsigned v8::internal::ProfileNode::id_
private

Definition at line 353 of file profile-generator.h.

◆ line_number_

int v8::internal::ProfileNode::line_number_
private

Definition at line 350 of file profile-generator.h.

◆ line_ticks_

std::unordered_map<int, int> v8::internal::ProfileNode::line_ticks_
private

Definition at line 355 of file profile-generator.h.

◆ parent_

ProfileNode* v8::internal::ProfileNode::parent_
private

Definition at line 352 of file profile-generator.h.

◆ self_ticks_

unsigned v8::internal::ProfileNode::self_ticks_
private

Definition at line 347 of file profile-generator.h.

◆ tree_

ProfileTree* v8::internal::ProfileNode::tree_
private

Definition at line 345 of file profile-generator.h.


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