v8
3.25.30(node0.11.13)
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 } |
Public Member Functions | |
Type | GetType () const |
Handle< String > | GetName () const |
SnapshotObjectId | GetId () const |
V8_DEPRECATED ("Use GetShallowSize instead", int GetSelfSize() 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 231 of file v8-profiler.h.
enum Type |
Enumerator | |
---|---|
kHidden | |
kArray | |
kString | |
kObject | |
kCode | |
kClosure | |
kRegExp | |
kHeapNumber | |
kNative | |
kSynthetic | |
kConsString | |
kSlicedString |
Definition at line 233 of file v8-profiler.h.
const HeapGraphEdge * GetChild | ( | int | index | ) | const |
Retrieves a child by index.
Definition at line 7260 of file api.cc.
Referenced by HasWeakEdge(), and TEST().
int GetChildrenCount | ( | ) | const |
Returns child nodes count of the node.
Definition at line 7255 of file api.cc.
Referenced by HasWeakEdge(), and TEST().
SnapshotObjectId GetId | ( | ) | 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 7231 of file api.cc.
References Isolate::factory(), Factory::InternalizeUtf8String(), and name.
Referenced by TEST().
size_t GetShallowSize | ( | ) | const |
HeapGraphNode::Type GetType | ( | ) | const |
Returns node type (see HeapGraphNode::Type).
Definition at line 7226 of file api.cc.
Referenced by TEST().
V8_DEPRECATED | ( | "Use GetShallowSize instead" | , |
int GetSelfSize() | const | ||
) |
Returns node's own size, in bytes.