[gjs: 5/11] heapgraph: Display both nodes of an interesting edge



commit 73e2d3c9de109c8f10bd8e56a28182c627a44ae5
Author: Philip Chimento <philip chimento gmail com>
Date:   Thu Aug 8 22:09:17 2019 -0700

    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.

 tools/heapgraph.py | 1 +
 1 file changed, 1 insertion(+)
---
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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]