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

#include <allocation-tracker.h>

Collaboration diagram for v8::internal::AllocationTraceNode:

Public Member Functions

 AllocationTraceNode (AllocationTraceTree *tree, unsigned function_info_index)
 
 ~AllocationTraceNode ()
 
 AllocationTraceNode (const AllocationTraceNode &)=delete
 
AllocationTraceNodeoperator= (const AllocationTraceNode &)=delete
 
AllocationTraceNodeFindChild (unsigned function_info_index)
 
AllocationTraceNodeFindOrAddChild (unsigned function_info_index)
 
void AddAllocation (unsigned size)
 
unsigned function_info_index () const
 
unsigned allocation_size () const
 
unsigned allocation_count () const
 
unsigned id () const
 
const std::vector< AllocationTraceNode * > & children () const
 
void Print (int indent, AllocationTracker *tracker)
 

Private Attributes

AllocationTraceTreetree_
 
unsigned function_info_index_
 
unsigned total_size_
 
unsigned allocation_count_
 
unsigned id_
 
std::vector< AllocationTraceNode * > children_
 

Detailed Description

Definition at line 32 of file allocation-tracker.h.

Constructor & Destructor Documentation

◆ AllocationTraceNode() [1/2]

v8::internal::AllocationTraceNode::AllocationTraceNode ( AllocationTraceTree * tree,
unsigned function_info_index )

Definition at line 18 of file allocation-tracker.cc.

Here is the caller graph for this function:

◆ ~AllocationTraceNode()

v8::internal::AllocationTraceNode::~AllocationTraceNode ( )

Definition at line 28 of file allocation-tracker.cc.

◆ AllocationTraceNode() [2/2]

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

Member Function Documentation

◆ AddAllocation()

void v8::internal::AllocationTraceNode::AddAllocation ( unsigned size)

Definition at line 53 of file allocation-tracker.cc.

Here is the caller graph for this function:

◆ allocation_count()

unsigned v8::internal::AllocationTraceNode::allocation_count ( ) const
inline

Definition at line 45 of file allocation-tracker.h.

◆ allocation_size()

unsigned v8::internal::AllocationTraceNode::allocation_size ( ) const
inline

Definition at line 44 of file allocation-tracker.h.

◆ children()

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

Definition at line 47 of file allocation-tracker.h.

Here is the caller graph for this function:

◆ FindChild()

AllocationTraceNode * v8::internal::AllocationTraceNode::FindChild ( unsigned function_info_index)

Definition at line 33 of file allocation-tracker.cc.

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

◆ FindOrAddChild()

AllocationTraceNode * v8::internal::AllocationTraceNode::FindOrAddChild ( unsigned function_info_index)

Definition at line 42 of file allocation-tracker.cc.

Here is the call graph for this function:

◆ function_info_index()

unsigned v8::internal::AllocationTraceNode::function_info_index ( ) const
inline

Definition at line 43 of file allocation-tracker.h.

Here is the caller graph for this function:

◆ id()

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

Definition at line 46 of file allocation-tracker.h.

Here is the caller graph for this function:

◆ operator=()

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

◆ Print()

void v8::internal::AllocationTraceNode::Print ( int indent,
AllocationTracker * tracker )

Definition at line 59 of file allocation-tracker.cc.

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

Member Data Documentation

◆ allocation_count_

unsigned v8::internal::AllocationTraceNode::allocation_count_
private

Definition at line 57 of file allocation-tracker.h.

◆ children_

std::vector<AllocationTraceNode*> v8::internal::AllocationTraceNode::children_
private

Definition at line 59 of file allocation-tracker.h.

◆ function_info_index_

unsigned v8::internal::AllocationTraceNode::function_info_index_
private

Definition at line 55 of file allocation-tracker.h.

◆ id_

unsigned v8::internal::AllocationTraceNode::id_
private

Definition at line 58 of file allocation-tracker.h.

◆ total_size_

unsigned v8::internal::AllocationTraceNode::total_size_
private

Definition at line 56 of file allocation-tracker.h.

◆ tree_

AllocationTraceTree* v8::internal::AllocationTraceNode::tree_
private

Definition at line 54 of file allocation-tracker.h.


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