[pypy-svn] r79280 - pypy/branch/jit-free/pypy/translator

antocuni at codespeak.net antocuni at codespeak.net
Fri Nov 19 17:33:43 CET 2010


Author: antocuni
Date: Fri Nov 19 17:33:42 2010
New Revision: 79280

Modified:
   pypy/branch/jit-free/pypy/translator/driver.py
Log:
print markers about the various translation phases in the log


Modified: pypy/branch/jit-free/pypy/translator/driver.py
==============================================================================
--- pypy/branch/jit-free/pypy/translator/driver.py	(original)
+++ pypy/branch/jit-free/pypy/translator/driver.py	Fri Nov 19 17:33:42 2010
@@ -19,6 +19,11 @@
 log = py.log.Producer("translation")
 py.log.setconsumer("translation", ansi_log)
 
+try:
+    from __pypy__ import debug_print_once
+except ImportError:
+    def debug_print_once(*args):
+        pass
 
 def taskdef(taskfunc, deps, title, new_state=None, expected_states=[],
             idemp=False, earlycheck=None):
@@ -283,6 +288,7 @@
             return
         else:
             self.log.info("%s..." % title)
+        debug_print_once('gc-collect-task', 'starting', goal)
         self.timer.start_event(goal)
         try:
             instrument = False



More information about the Pypy-commit mailing list