v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HeapGraphNode Class Reference

#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< StringGetName () const
 
SnapshotObjectId GetId () const
 
int GetSelfSize () const
 
int GetChildrenCount () const
 
const HeapGraphEdgeGetChild (int index) const
 
Handle< ValueGetHeapValue () const
 

Detailed Description

HeapGraphNode represents a node in a heap graph.

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

Member Enumeration Documentation

enum Type
Enumerator
kHidden 
kArray 
kString 
kObject 
kCode 
kClosure 
kRegExp 
kHeapNumber 
kNative 
kSynthetic 

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

Member Function Documentation

const HeapGraphEdge * GetChild ( int  index) const

Retrieves a child by index.

Definition at line 6226 of file api.cc.

Referenced by HasWeakEdge(), and TEST().

int GetChildrenCount ( ) const

Returns child nodes count of the node.

Definition at line 6219 of file api.cc.

Referenced by HasWeakEdge(), and TEST().

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 6234 of file api.cc.

References Isolate::factory().

Referenced by TEST().

SnapshotObjectId GetId ( ) const

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

Definition at line 6205 of file api.cc.

Referenced by TEST().

Handle< String > 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 6197 of file api.cc.

References Isolate::factory(), and Factory::LookupAsciiSymbol().

Referenced by TEST().

int GetSelfSize ( ) const

Returns node's own size, in bytes.

Definition at line 6212 of file api.cc.

Referenced by TEST().

HeapGraphNode::Type GetType ( ) const

Returns node type (see HeapGraphNode::Type).

Definition at line 6190 of file api.cc.

Referenced by TEST().


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