ObjectHeapGraphNode
HeapGraphNode represents a node in the heap view
inheritance relationship
member properties
type
Integer, node type, possible values:
1readonly Integer HeapGraphNode.type;
- profiler.Node_Hidden, hidden nodes that can be filtered out when displayed to the user
- profiler.Node_Array, array
- profiler.Node_String, string
- profiler.Node_Object, JS objects (except strings and arrays)
- profiler.Node_Code, the compiled code
- profiler.Node_Closure, function closure
- profiler.Node_RegExp, regular expression
- profiler.Node_HeapNumber, the sorted numbers in the heap
- profiler.Node_Native, Native object (not on the v8 heap)
- profiler.Node_Synthetic, Synthetic object
- profiler.Node_ConsString, concatenated strings
- profiler.Node_SlicedString, split string
- profiler.Node_Symbol, symbol (ES6)
- profiler.Node_SimdValue, sorted SIMD values in the heap (ES7)
name
String, node name
1readonly String HeapGraphNode.name;
description
String, description of the node
1readonly String HeapGraphNode.description;
id
Integer, node ID
1readonly Integer HeapGraphNode.id;
shallowSize
Integer, node size in bytes
1readonly Integer HeapGraphNode.shallowSize;
childs
NArray, list of child nodes, consisting ofHeapGraphEdgeType object composition
1readonly NArray HeapGraphNode.childs;
member function
toString
Returns the string representation of the object. Generally, "[Native Object]" is returned. The object can be re-implemented according to its own characteristics.
1String HeapGraphNode.toString();
Return results:
- String, returns the string representation of the object
toJSON
Returns a JSON format representation of the object, generally returning a collection of readable properties defined by the object.
1Value HeapGraphNode.toJSON(String key = "");
Call parameters:
- key: String, not used
Return results:
- Value, returns a value containing JSON serializable