Object HeapGraphNode
HeapGraphNode represents a node in the heap view
Inheritance
Member attributes
type
Integer, node type, possible values:
1readonly Integer HeapGraphNode.type;
- profiler.Node_Hidden, Hidden nodes, which 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, Sorted numbers in the pile
- profiler.Node_Native, Native object (not on the v8 heap)
- profiler.Node_Synthetic, Synthetic object
- profiler.Node_ConsString, The concatenated string
- profiler.Node_SlicedString, The split string
- profiler.Node_Symbol, Symbol (ES6)
- profiler.Node_SimdValue, Sorted SIMD value in the heap (ES7)
name
String, node name
1readonly String HeapGraphNode.name;
description
String, the 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, a list of child nodes, byHeapGraphEdgeType object composition
1readonly NArray HeapGraphNode.childs;
Member function
toString
Returns the string representation of the object, generally returns "[Native Object]", the object can be re-implemented according to its own characteristics
1String HeapGraphNode.toString();
Return result:
- String, Returns the string representation of the object
toJSON
Returns the JSON format representation of the object, generally returns a collection of readable attributes defined by the object
1Value HeapGraphNode.toJSON(String key = "");
Call parameters:
- key: String, unused
Return result:
- Value, Returns a value containing JSON serializable