Object HeapGraphEdge
HeapGraphEdge means twoHeapGraphNodeAssociation between nodes, from upstream node to downstream node
Inheritance
Member attributes
type
Integer, the link method of downstream nodes, possible values:
1readonly Integer HeapGraphEdge.type;
- profiler.Edge_ContextVariable, Variables in the function
- profiler.Edge_Element, Elements in the array
- profiler.Edge_Property, The properties of the named object
- profiler.Edge_Internal, JS inaccessible link
- profiler.Edge_Hidden, Point to the node whose space size needs to be calculated in advance
- profiler.Edge_Shortcut, Point to a node whose space size cannot be calculated in advance
- profiler.Edge_Weak, A weak reference (ignored by GC)
name
String, link name
1readonly String HeapGraphEdge.name;
description
String, description of the link
1readonly String HeapGraphEdge.description;
Member function
getFromNode
Get the upstream of HeapGraphEdgeHeapGraphNodenode
1HeapGraphNode HeapGraphEdge.getFromNode();
Return result:
- HeapGraphNode, Return to sourceHeapGraphNodenode
getToNode
Get the downstream of HeapGraphEdgeHeapGraphNodenode
1HeapGraphNode HeapGraphEdge.getToNode();
Return result:
- HeapGraphNode, Return purposeHeapGraphNodenode
toString
Returns the string representation of the object, generally returns "[Native Object]", the object can be re-implemented according to its own characteristics
1String HeapGraphEdge.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 HeapGraphEdge.toJSON(String key = "");
Call parameters:
- key: String, unused
Return result:
- Value, Returns a value containing JSON serializable