[pypy-svn] r20603 - pypy/dist/pypy/translator/tool

arigo at codespeak.net arigo at codespeak.net
Sat Dec 3 11:44:26 CET 2005


Author: arigo
Date: Sat Dec  3 11:44:25 2005
New Revision: 20603

Modified:
   pypy/dist/pypy/translator/tool/graphpage.py
Log:
(pedronis, arigo)

Localized graph page: fixed the labels, added all edges between the
displayed nodes.



Modified: pypy/dist/pypy/translator/tool/graphpage.py
==============================================================================
--- pypy/dist/pypy/translator/tool/graphpage.py	(original)
+++ pypy/dist/pypy/translator/tool/graphpage.py	Sat Dec  3 11:44:25 2005
@@ -373,10 +373,14 @@
 
         for g1, g2 in translator.callgraph.values():
             if g1 in centers  or g2 in centers:
-                dotgen.emit_edge(nameof(g1), nameof(g2))
                 graphs[g1] = True
                 graphs[g2] = True
 
+        # show all edges that exist between these graphs
+        for g1, g2 in translator.callgraph.values():
+            if g1 in graphs and g2 in graphs:
+                dotgen.emit_edge(nameof(g1), nameof(g2))
+
         graphs = graphs.keys()
 
         # show the call graph
@@ -395,7 +399,7 @@
 
             if graph  not in centers:
                 lcg = 'LCG_%s' % nameof(graph)
-                label = graph.name+'...'
+                label = data+'...'
                 dotgen.emit_node(lcg, label=label)
                 dotgen.emit_edge(nameof(graph), lcg)
                 self.links[label] = 'go to its localized call graph'



More information about the Pypy-commit mailing list