[pypy-svn] r40815 - pypy/dist/pypy/jit/hintannotator

xoraxax at codespeak.net xoraxax at codespeak.net
Tue Mar 20 10:54:11 CET 2007


Author: xoraxax
Date: Tue Mar 20 10:54:10 2007
New Revision: 40815

Modified:
   pypy/dist/pypy/jit/hintannotator/bookkeeper.py
Log:
Show dots instead of graph names while hintannotating in non-verbose mode.

Modified: pypy/dist/pypy/jit/hintannotator/bookkeeper.py
==============================================================================
--- pypy/dist/pypy/jit/hintannotator/bookkeeper.py	(original)
+++ pypy/dist/pypy/jit/hintannotator/bookkeeper.py	Tue Mar 20 10:54:10 2007
@@ -43,6 +43,7 @@
         return graph
 
     def cachedgraph(self, key, alt_name=None):
+        verbose = self.bookkeeper.annotator.translator.config.translation.verbose
         try:
             return self._cache[key]
         except KeyError:
@@ -50,10 +51,16 @@
             if bk.annotator.policy.look_inside_graph(self.origgraph):
                 graph = copygraph(self.origgraph, varmap=TIMESHIFTMAP)
                 bk.nonstubgraphcount += 1
-                log(str(graph))
+                if verbose:
+                    log(str(graph))
+                else:
+                    log.dot()
             else:
                 graph = self.build_callback_graph(self.origgraph)
-                log.stub(str(graph))
+                if verbose:
+                    log.stub(str(graph))
+                else:
+                    log.dot()
             graph.tag = 'timeshifted'
             try:
                 etrafo = bk.annotator.exceptiontransformer



More information about the Pypy-commit mailing list