Author: Remi Meier <[email protected]>
Branch: stmgc-c4
Changeset: r67682:b79fa946dff3
Date: 2013-10-28 20:23 +0100
http://bitbucket.org/pypy/pypy/changeset/b79fa946dff3/
Log: jitlogparser output improvement
diff --git a/pypy/tool/jitlogparser/parser.py b/pypy/tool/jitlogparser/parser.py
--- a/pypy/tool/jitlogparser/parser.py
+++ b/pypy/tool/jitlogparser/parser.py
@@ -87,7 +87,7 @@
continue
e = elem.split("\t")
adr = e[0]
- v = elem # --- more compactly: " ".join(e[2:])
+ v = " ".join(e[2:])
if not start:
start = int(adr.strip(":"), 16)
ofs = int(adr.strip(":"), 16)
@@ -102,7 +102,6 @@
if ofs >= 0:
asm.append((ofs, v.strip("\n")))
#
- prefix = hex(dump_start)[:-9]
asm_index = 0
for i, op in enumerate(loop.operations):
end = 0
@@ -122,7 +121,7 @@
while asm[end_index][0] - start < end and end_index <
len(asm) - 1:
end_index += 1
op.asm = '\n'.join([
- prefix+hex(asm[i][0])[2:] + ": " + asm[i][1]
+ hex(asm[i][0]) + ": " + asm[i][1]
for i in range(asm_index, end_index)])
return loop
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit