summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2019-08-08 22:09:17 -0700
committerPhilip Chimento <philip.chimento@gmail.com>2019-08-08 22:09:17 -0700
commit73e2d3c9de109c8f10bd8e56a28182c627a44ae5 (patch)
tree9f748f563f632ccb73ee884aba582f6b567f1c57 /tools
parent724c4a50eb24f67d2662c0d187234ac3650b893b (diff)
downloadgjs-73e2d3c9de109c8f10bd8e56a28182c627a44ae5.tar.gz
heapgraph: Display both nodes of an interesting edge
If we select an edge name as our target, we likely want the node it's coming from as well as the node it's pointing to.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/heapgraph.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/heapgraph.py b/tools/heapgraph.py
index bf1ae58e..35c0f918 100755
--- a/tools/heapgraph.py
+++ b/tools/heapgraph.py
@@ -569,6 +569,7 @@ def target_edge(graph, target):
for destination in destinations:
if target in graph.edge_labels[origin][destination]:
targets.append(destination)
+ targets.append(origin)
sys.stderr.write('Found {} objects with edge label of {}\n'.format(len(targets), target))
return targets