[pypy-svn] r14576 - pypy/dist/pypy/rpython

arigo at codespeak.net arigo at codespeak.net
Tue Jul 12 22:23:20 CEST 2005


Author: arigo
Date: Tue Jul 12 22:23:18 2005
New Revision: 14576

Modified:
   pypy/dist/pypy/rpython/rtyper.py
Log:
Print a progress report while rtyping.


Modified: pypy/dist/pypy/rpython/rtyper.py
==============================================================================
--- pypy/dist/pypy/rpython/rtyper.py	(original)
+++ pypy/dist/pypy/rpython/rtyper.py	Tue Jul 12 22:23:18 2005
@@ -118,6 +118,12 @@
             for block in pending:
                 self.specialize_block(block)
                 self.already_seen[block] = True
+                # progress bar
+                n = len(self.already_seen)
+                if n % 100 == 0:
+                    total = len(self.annotator.annotated)
+                    print 'specializing: %d / %d blocks   (%d%%)' % (
+                        n, total, 100 * n // total)
             # make sure all reprs so far have had their setup() called
             self.call_all_setups()
 



More information about the Pypy-commit mailing list