[pypy-svn] r65557 - pypy/branch/pyjitpl5-experiments/pypy/translator/c/gcc

arigo at codespeak.net arigo at codespeak.net
Wed Jun 3 15:34:19 CEST 2009


Author: arigo
Date: Wed Jun  3 15:34:17 2009
New Revision: 65557

Modified:
   pypy/branch/pyjitpl5-experiments/pypy/translator/c/gcc/trackgcroot.py
Log:
In the default mode ("not too verbose"), print dots instead of lines
with function names.


Modified: pypy/branch/pyjitpl5-experiments/pypy/translator/c/gcc/trackgcroot.py
==============================================================================
--- pypy/branch/pyjitpl5-experiments/pypy/translator/c/gcc/trackgcroot.py	(original)
+++ pypy/branch/pyjitpl5-experiments/pypy/translator/c/gcc/trackgcroot.py	Wed Jun  3 15:34:17 2009
@@ -129,11 +129,15 @@
             if in_function:
                 lines = self.process_function(lines, entrypoint, filename)
             newfile.writelines(lines)
+        if self.verbose == 1:
+            sys.stderr.write('\n')
 
     def process_function(self, lines, entrypoint, filename):
         tracker = FunctionGcRootTracker(lines, filetag=getidentifier(filename))
         tracker.is_main = tracker.funcname == entrypoint
-        if self.verbose:
+        if self.verbose == 1:
+            sys.stderr.write('.')
+        elif self.verbose > 1:
             print >> sys.stderr, '[trackgcroot:%s] %s' % (filename,
                                                           tracker.funcname)
         table = tracker.computegcmaptable(self.verbose)



More information about the Pypy-commit mailing list