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

#include <sampling-heap-profiler.h>

Collaboration diagram for v8::internal::SamplingHeapProfiler::AllocationNode:

Public Types

using FunctionId = uint64_t
 

Public Member Functions

 AllocationNode (AllocationNode *parent, const char *name, int script_id, int start_position, uint32_t id)
 
 AllocationNode (const AllocationNode &)=delete
 
AllocationNodeoperator= (const AllocationNode &)=delete
 
AllocationNodeFindChildNode (FunctionId id)
 
AllocationNodeAddChildNode (FunctionId id, std::unique_ptr< AllocationNode > node)
 

Static Public Member Functions

static FunctionId function_id (int script_id, int start_position, const char *name)
 

Private Attributes

std::map< size_t, unsigned int > allocations_
 
std::map< FunctionId, std::unique_ptr< AllocationNode > > children_
 
AllocationNode *const parent_
 
const int script_id_
 
const int script_position_
 
const char *const name_
 
uint32_t id_
 
bool pinned_ = false
 

Friends

class SamplingHeapProfiler
 

Detailed Description

Definition at line 48 of file sampling-heap-profiler.h.

Member Typedef Documentation

◆ FunctionId

Constructor & Destructor Documentation

◆ AllocationNode() [1/2]

v8::internal::SamplingHeapProfiler::AllocationNode::AllocationNode ( AllocationNode * parent,
const char * name,
int script_id,
int start_position,
uint32_t id )
inline

Definition at line 51 of file sampling-heap-profiler.h.

◆ AllocationNode() [2/2]

v8::internal::SamplingHeapProfiler::AllocationNode::AllocationNode ( const AllocationNode & )
delete

Member Function Documentation

◆ AddChildNode()

AllocationNode * v8::internal::SamplingHeapProfiler::AllocationNode::AddChildNode ( FunctionId id,
std::unique_ptr< AllocationNode > node )
inline

Definition at line 66 of file sampling-heap-profiler.h.

Here is the caller graph for this function:

◆ FindChildNode()

AllocationNode * v8::internal::SamplingHeapProfiler::AllocationNode::FindChildNode ( FunctionId id)
inline

Definition at line 61 of file sampling-heap-profiler.h.

Here is the caller graph for this function:

◆ function_id()

static FunctionId v8::internal::SamplingHeapProfiler::AllocationNode::function_id ( int script_id,
int start_position,
const char * name )
inlinestatic

Definition at line 71 of file sampling-heap-profiler.h.

Here is the caller graph for this function:

◆ operator=()

AllocationNode & v8::internal::SamplingHeapProfiler::AllocationNode::operator= ( const AllocationNode & )
delete

Friends And Related Symbol Documentation

◆ SamplingHeapProfiler

friend class SamplingHeapProfiler
friend

Definition at line 99 of file sampling-heap-profiler.h.

Member Data Documentation

◆ allocations_

std::map<size_t, unsigned int> v8::internal::SamplingHeapProfiler::AllocationNode::allocations_
private

Definition at line 90 of file sampling-heap-profiler.h.

◆ children_

std::map<FunctionId, std::unique_ptr<AllocationNode> > v8::internal::SamplingHeapProfiler::AllocationNode::children_
private

Definition at line 91 of file sampling-heap-profiler.h.

◆ id_

uint32_t v8::internal::SamplingHeapProfiler::AllocationNode::id_
private

Definition at line 96 of file sampling-heap-profiler.h.

◆ name_

const char* const v8::internal::SamplingHeapProfiler::AllocationNode::name_
private

Definition at line 95 of file sampling-heap-profiler.h.

◆ parent_

AllocationNode* const v8::internal::SamplingHeapProfiler::AllocationNode::parent_
private

Definition at line 92 of file sampling-heap-profiler.h.

◆ pinned_

bool v8::internal::SamplingHeapProfiler::AllocationNode::pinned_ = false
private

Definition at line 97 of file sampling-heap-profiler.h.

◆ script_id_

const int v8::internal::SamplingHeapProfiler::AllocationNode::script_id_
private

Definition at line 93 of file sampling-heap-profiler.h.

◆ script_position_

const int v8::internal::SamplingHeapProfiler::AllocationNode::script_position_
private

Definition at line 94 of file sampling-heap-profiler.h.


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