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

#include <v8-profiler.h>

Collaboration diagram for v8::HeapGraphNode:

Public Types

enum  Type {
  kHidden = 0 , kArray = 1 , kString = 2 , kObject = 3 ,
  kCode = 4 , kClosure = 5 , kRegExp = 6 , kHeapNumber = 7 ,
  kNative = 8 , kSynthetic = 9 , kConsString = 10 , kSlicedString = 11 ,
  kSymbol = 12 , kBigInt = 13 , kObjectShape = 14
}
 

Public Member Functions

Type GetType () const
 
Local< StringGetName () const
 
SnapshotObjectId GetId () const
 
size_t GetShallowSize () const
 
int GetChildrenCount () const
 
const HeapGraphEdgeGetChild (int index) const
 

Detailed Description

HeapGraphNode represents a node in a heap graph.

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

Member Enumeration Documentation

◆ Type

Enumerator
kHidden 
kArray 
kString 
kObject 
kCode 
kClosure 
kRegExp 
kHeapNumber 
kNative 
kSynthetic 
kConsString 
kSlicedString 
kSymbol 
kBigInt 
kObjectShape 

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

Member Function Documentation

◆ GetChild()

const HeapGraphEdge * v8::HeapGraphNode::GetChild ( int index) const

Retrieves a child by index.

Definition at line 11644 of file api.cc.

Here is the call graph for this function:

◆ GetChildrenCount()

int v8::HeapGraphNode::GetChildrenCount ( ) const

Returns child nodes count of the node.

Definition at line 11640 of file api.cc.

Here is the call graph for this function:

◆ GetId()

SnapshotObjectId v8::HeapGraphNode::GetId ( ) const

Returns node id. For the same heap object, the id remains the same across all snapshots.

Definition at line 11634 of file api.cc.

Here is the call graph for this function:

◆ GetName()

Local< String > v8::HeapGraphNode::GetName ( ) const

Returns node name. Depending on node's type this can be the name of the constructor (for objects), the name of the function (for closures), string value, or an empty string (for compiled code).

Definition at line 11628 of file api.cc.

Here is the call graph for this function:

◆ GetShallowSize()

size_t v8::HeapGraphNode::GetShallowSize ( ) const

Returns node's own size, in bytes.

Definition at line 11636 of file api.cc.

Here is the call graph for this function:

◆ GetType()

HeapGraphNode::Type v8::HeapGraphNode::GetType ( ) const

Returns node type (see HeapGraphNode::Type).

Definition at line 11624 of file api.cc.

Here is the call graph for this function:

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