[pypy-svn] r66020 - pypy/branch/pyjitpl5/pypy/jit/metainterp

arigo at codespeak.net arigo at codespeak.net
Sun Jun 28 22:13:29 CEST 2009


Author: arigo
Date: Sun Jun 28 22:13:28 2009
New Revision: 66020

Modified:
   pypy/branch/pyjitpl5/pypy/jit/metainterp/pyjitpl.py
Log:
Set the default debug level to 1 instead of 0.
Print a line when the JIT starts up; the line
contains the name of the optimize* module and
the backend used.


Modified: pypy/branch/pyjitpl5/pypy/jit/metainterp/pyjitpl.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/metainterp/pyjitpl.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/metainterp/pyjitpl.py	Sun Jun 28 22:13:28 2009
@@ -20,7 +20,7 @@
         assert isinstance(arg, (Box, Const))
 
 # debug level: 0 off, 1 normal, 2 detailed
-DEBUG = 0
+DEBUG = 1
 
 def log(msg):
     if not we_are_translated():
@@ -991,6 +991,13 @@
         self.warmrunnerdesc = warmrunnerdesc
         self._op_goto_if_not = self.find_opcode('goto_if_not')
 
+        optmodule = self.optimize_loop.__module__
+        optmodule = optmodule.split('.')[-1]
+        backendmodule = self.cpu.__module__
+        backendmodule = backendmodule.split('.')[-2]
+        self.jit_starting_line = 'JIT starting (%s, %s)' % (optmodule,
+                                                            backendmodule)
+
     def _freeze_(self):
         return True
 
@@ -1013,6 +1020,7 @@
                     cs[key] = value
                 self.cpu.class_sizes = cs
             self.cpu.setup_once()
+            log(self.jit_starting_line)
             if not self.profiler.initialized:
                 self.profiler.start()
                 self.profiler.initialized = True



More information about the Pypy-commit mailing list