ObjectHeapGraphEdge
HeapGraphEdge represents twoHeapGraphNodeAssociations between nodes, from upstream nodes to downstream nodes
inheritance relationship
member properties
type
Integer, link mode 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, properties of named objects
- profiler.Edge_Internal, links that cannot be accessed by JS
- profiler.Edge_Hidden, points to the node whose space size needs to be calculated in advance
- profiler.Edge_Shortcut, points 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 results:
- HeapGraphNode, return to sourceHeapGraphNodenode
getToNode
Get the downstream of HeapGraphEdgeHeapGraphNodenode
1HeapGraphNode HeapGraphEdge.getToNode();
Return results:
- HeapGraphNode, return destinationHeapGraphNodenode
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 HeapGraphEdge.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 HeapGraphEdge.toJSON(String key = "");
Call parameters:
- key: String, not used
Return results:
- Value, returns a value containing JSON serializable