Author: Carl Friedrich Bolz <[email protected]>
Branch:
Changeset: r92091:eef485998ca1
Date: 2017-08-05 21:11 +0200
http://bitbucket.org/pypy/pypy/changeset/eef485998ca1/
Log: jit-log-noopt logging was broken by 2bf0191fb21d
(the have_debug_prints needs to be *inside* the debug_start,
otherwise stuff is never logged.)
diff --git a/rpython/jit/metainterp/logger.py b/rpython/jit/metainterp/logger.py
--- a/rpython/jit/metainterp/logger.py
+++ b/rpython/jit/metainterp/logger.py
@@ -13,10 +13,11 @@
self.guard_number = guard_number
def log_loop_from_trace(self, trace, memo):
+ debug_start("jit-log-noopt")
if not have_debug_prints():
+ debug_stop("jit-log-noopt")
return
inputargs, ops = self._unpack_trace(trace)
- debug_start("jit-log-noopt")
debug_print("# Traced loop or bridge with", len(ops), "ops")
logops = self._log_operations(inputargs, ops, None, memo)
debug_stop("jit-log-noopt")
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit