|
V8 Project
|
HeapGraphNode represents a node in a heap graph. More...
#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 } |
Public Member Functions | |
| Type | GetType () const |
| Returns node type (see HeapGraphNode::Type). More... | |
| Handle< String > | GetName () const |
| Returns node name. More... | |
| SnapshotObjectId | GetId () const |
| Returns node id. More... | |
| V8_DEPRECATED ("Use GetShallowSize instead", int GetSelfSize() const) | |
| Returns node's own size, in bytes. More... | |
| size_t | GetShallowSize () const |
| Returns node's own size, in bytes. More... | |
| int | GetChildrenCount () const |
| Returns child nodes count of the node. More... | |
| const HeapGraphEdge * | GetChild (int index) const |
| Retrieves a child by index. More... | |
HeapGraphNode represents a node in a heap graph.
Definition at line 219 of file v8-profiler.h.
| Enumerator | |
|---|---|
| kHidden | |
| kArray | |
| kString | |
| kObject | |
| kCode | |
| kClosure | |
| kRegExp | |
| kHeapNumber | |
| kNative | |
| kSynthetic | |
| kConsString | |
| kSlicedString | |
| kSymbol | |
Definition at line 221 of file v8-profiler.h.
| const HeapGraphEdge * v8::HeapGraphNode::GetChild | ( | int | index | ) | const |
Retrieves a child by index.
Definition at line 7297 of file api.cc.
References v8::ToInternal().
Here is the call graph for this function:| int v8::HeapGraphNode::GetChildrenCount | ( | ) | const |
Returns child nodes count of the node.
Definition at line 7292 of file api.cc.
References v8::ToInternal().
Here is the call graph for this function:| SnapshotObjectId v8::HeapGraphNode::GetId | ( | ) | const |
Returns node id.
For the same heap object, the id remains the same across all snapshots.
Definition at line 7275 of file api.cc.
References v8::ToInternal().
Here is the call graph for this function: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 7268 of file api.cc.
References v8::internal::Isolate::factory(), name, and v8::ToInternal().
Here is the call graph for this function:| size_t v8::HeapGraphNode::GetShallowSize | ( | ) | const |
Returns node's own size, in bytes.
Definition at line 7287 of file api.cc.
References v8::ToInternal().
Here is the call graph for this function:| HeapGraphNode::Type v8::HeapGraphNode::GetType | ( | ) | const |
Returns node type (see HeapGraphNode::Type).
Definition at line 7263 of file api.cc.
References v8::ToInternal().
Here is the call graph for this function:| v8::HeapGraphNode::V8_DEPRECATED | ( | "Use GetShallowSize instead" | , |
| int GetSelfSize() const | |||
| ) |
Returns node's own size, in bytes.