[pypy-svn] r78196 - pypy/branch/cleanup-dict-impl/pypy/module/pypyjit/test
arigo at codespeak.net
arigo at codespeak.net
Fri Oct 22 13:27:37 CEST 2010
Author: arigo
Date: Fri Oct 22 13:27:36 2010
New Revision: 78196
Modified:
pypy/branch/cleanup-dict-impl/pypy/module/pypyjit/test/test_pypy_c.py
Log:
Dump the loop as loaded from the log file, instead of dumping it
after being parsed and reformatted (the descrs are lost).
Modified: pypy/branch/cleanup-dict-impl/pypy/module/pypyjit/test/test_pypy_c.py
==============================================================================
--- pypy/branch/cleanup-dict-impl/pypy/module/pypyjit/test/test_pypy_c.py (original)
+++ pypy/branch/cleanup-dict-impl/pypy/module/pypyjit/test/test_pypy_c.py Fri Oct 22 13:27:36 2010
@@ -136,9 +136,10 @@
assert opslogfile.check()
log = logparser.parse_log_file(str(opslogfile))
parts = logparser.extract_category(log, 'jit-log-opt-')
+ self.rawloops = [part for part in parts
+ if not from_entry_bridge(part, parts)]
# skip entry bridges, they can contain random things
- self.loops = [parse(part, no_namespace=True) for part in parts
- if not from_entry_bridge(part, parts)]
+ self.loops = [parse(part, no_namespace=True) for part in self.rawloops]
self.sliced_loops = [] # contains all bytecodes of all loops
self.total_ops = 0
for loop in self.loops:
@@ -162,12 +163,11 @@
return [ops for ops in self.sliced_loops if ops.bytecode == name]
def print_loops(self):
- for loop in self.loops:
+ for rawloop in self.rawloops:
print
print '@' * 79
print
- for op in loop.operations:
- print op
+ print rawloop.rstrip()
print
print '@' * 79
More information about the Pypy-commit
mailing list