v8
3.11.10(node0.8.26)
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 } |
Public Member Functions | |
Type | GetType () const |
Handle< String > | GetName () const |
SnapshotObjectId | GetId () const |
int | GetSelfSize () const |
int | GetRetainedSize () const |
int | GetChildrenCount () const |
const HeapGraphEdge * | GetChild (int index) const |
int | GetRetainersCount () const |
const HeapGraphEdge * | GetRetainer (int index) const |
const HeapGraphNode * | GetDominatorNode () const |
Handle< Value > | GetHeapValue () const |
HeapGraphNode represents a node in a heap graph.
Definition at line 248 of file v8-profiler.h.
enum Type |
Enumerator | |
---|---|
kHidden | |
kArray | |
kString | |
kObject | |
kCode | |
kClosure | |
kRegExp | |
kHeapNumber | |
kNative | |
kSynthetic |
Definition at line 250 of file v8-profiler.h.
const HeapGraphEdge * GetChild | ( | int | index | ) | const |
Retrieves a child by index.
Definition at line 6069 of file api.cc.
Referenced by HasWeakEdge(), and TEST().
int GetChildrenCount | ( | ) | const |
Returns child nodes count of the node.
Definition at line 6062 of file api.cc.
Referenced by HasWeakEdge(), and TEST().
const HeapGraphNode* GetDominatorNode | ( | ) | const |
Returns a dominator node. This is the node that participates in every path from the snapshot root to the current node.
v8::Handle< v8::Value > GetHeapValue | ( | ) | const |
Finds and returns a value from the heap corresponding to this node, if the value is still reachable.
Definition at line 6077 of file api.cc.
References Isolate::factory().
Referenced by 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 6040 of file api.cc.
References Isolate::factory(), and Factory::LookupAsciiSymbol().
Referenced by TEST().
int GetRetainedSize | ( | ) | const |
Returns node's retained size, in bytes. That is, self + sizes of the objects that are reachable only from this object. In other words, the size of memory that will be reclaimed having this node collected.
const HeapGraphEdge* GetRetainer | ( | int | index | ) | const |
Returns a retainer by index.
int GetRetainersCount | ( | ) | const |
Returns retainer nodes count of the node.
int GetSelfSize | ( | ) | const |
HeapGraphNode::Type GetType | ( | ) | const |
Returns node type (see HeapGraphNode::Type).
Definition at line 6033 of file api.cc.
Referenced by TEST().