[pypy-svn] r65395 - pypy/branch/pyjitpl5-experiments/pypy/jit/metainterp

fijal at codespeak.net fijal at codespeak.net
Mon May 25 00:59:54 CEST 2009


Author: fijal
Date: Mon May 25 00:59:54 2009
New Revision: 65395

Modified:
   pypy/branch/pyjitpl5-experiments/pypy/jit/metainterp/codewriter.py
Log:
print info each 500 jitcodes


Modified: pypy/branch/pyjitpl5-experiments/pypy/jit/metainterp/codewriter.py
==============================================================================
--- pypy/branch/pyjitpl5-experiments/pypy/jit/metainterp/codewriter.py	(original)
+++ pypy/branch/pyjitpl5-experiments/pypy/jit/metainterp/codewriter.py	Mon May 25 00:59:54 2009
@@ -92,6 +92,7 @@
         self.cpu = metainterp_sd.cpu
         self.policy = policy
         self.ts = ts
+        self.counter = 0
 
     def make_portal_bytecode(self, graph):
         log.info("making JitCodes...")
@@ -111,6 +112,9 @@
         maker = BytecodeMaker(self, graph_key, portal)
         if not hasattr(maker.bytecode, 'code'):
             maker.assemble()
+            self.counter += 1
+            if not self.counter % 500:
+                log.info("Produced %d jitcodes" % self.counter)
         return maker.bytecode
 
     def get_jitcode(self, graph, called_from=None, oosend_methdescr=None):



More information about the Pypy-commit mailing list