v8
9.4.146 (node 16.13.0)
V8 is Google's open source JavaScript engine
|
#include <v8-profiler.h>
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 } |
Public Member Functions | |
Type | GetType () const |
Local< String > | GetName () const |
SnapshotObjectId | GetId () const |
size_t | GetShallowSize () const |
int | GetChildrenCount () const |
const HeapGraphEdge * | GetChild (int index) const |
HeapGraphNode represents a node in a heap graph.
Definition at line 449 of file v8-profiler.h.
enum Type |
Enumerator | |
---|---|
kHidden | |
kArray | |
kString | |
kObject | |
kCode | |
kClosure | |
kRegExp | |
kHeapNumber | |
kNative | |
kSynthetic | |
kConsString | |
kSlicedString | |
kSymbol | |
kBigInt |
Definition at line 451 of file v8-profiler.h.
const HeapGraphEdge* GetChild | ( | int | index | ) | const |
Retrieves a child by index.
int GetChildrenCount | ( | ) | const |
Returns child nodes count of the node.
SnapshotObjectId GetId | ( | ) | const |
Returns node id. For the same heap object, the id remains the same across all snapshots.
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).
size_t GetShallowSize | ( | ) | const |
Returns node's own size, in bytes.
Type GetType | ( | ) | const |
Returns node type (see HeapGraphNode::Type).