[pypy-svn] r65407 - in pypy/branch/pyjitpl5-experiments/pypy/jit: . metainterp

antocuni at codespeak.net antocuni at codespeak.net
Mon May 25 12:43:35 CEST 2009


Author: antocuni
Date: Mon May 25 12:43:33 2009
New Revision: 65407

Modified:
   pypy/branch/pyjitpl5-experiments/pypy/jit/conftest.py
   pypy/branch/pyjitpl5-experiments/pypy/jit/metainterp/compile.py
Log:
add an option to show only the loops, ignoring the annotated/rtyped graphs


Modified: pypy/branch/pyjitpl5-experiments/pypy/jit/conftest.py
==============================================================================
--- pypy/branch/pyjitpl5-experiments/pypy/jit/conftest.py	(original)
+++ pypy/branch/pyjitpl5-experiments/pypy/jit/conftest.py	Mon May 25 12:43:33 2009
@@ -9,5 +9,9 @@
         group.addoption('--slow', action="store_true",
                default=False, dest="run_slow_tests",
                help="run all the compiled tests (instead of just a few)")
+        group.addoption('--viewloops', action="store_true",
+               default=False, dest="viewloops",
+               help="show only the compiled loops")
+
 
 ConftestPlugin = JitTestPlugin

Modified: pypy/branch/pyjitpl5-experiments/pypy/jit/metainterp/compile.py
==============================================================================
--- pypy/branch/pyjitpl5-experiments/pypy/jit/metainterp/compile.py	(original)
+++ pypy/branch/pyjitpl5-experiments/pypy/jit/metainterp/compile.py	Mon May 25 12:43:33 2009
@@ -66,7 +66,7 @@
 
 def show_loop(metainterp, loop=None, error=None):
     # debugging
-    if option.view:
+    if option.view or option.viewloops:
         if error:
             errmsg = error.__class__.__name__
             if str(error):



More information about the Pypy-commit mailing list