[pypy-svn] r72151 - pypy/trunk/pypy/jit/tool
fijal at codespeak.net
fijal at codespeak.net
Fri Mar 12 02:42:17 CET 2010
Author: fijal
Date: Fri Mar 12 02:42:16 2010
New Revision: 72151
Modified:
pypy/trunk/pypy/jit/tool/traceviewer.py
Log:
Make boxes linkable. This makes it easier to trace stuff
Modified: pypy/trunk/pypy/jit/tool/traceviewer.py
==============================================================================
--- pypy/trunk/pypy/jit/tool/traceviewer.py (original)
+++ pypy/trunk/pypy/jit/tool/traceviewer.py Fri Mar 12 02:42:16 2010
@@ -15,6 +15,7 @@
class SubPage(GraphPage):
def compute(self, graph):
+ self.links = {}
dotgen = DotGen(str(graph.no))
# split over debug_merge_points
counter = 0
@@ -22,6 +23,9 @@
lines_so_far = []
for line in lines:
line = re.sub('.\[.*\]', '', line)
+ boxes = re.findall('([pif]\d+)', line)
+ for box in boxes:
+ self.links[box] = box
if 'debug_merge_point' in line:
dotgen.emit_node('node%d' % counter, shape="box",
label="\n".join(lines_so_far))
More information about the Pypy-commit
mailing list