Author: Tim Felgentreff <[email protected]>
Branch: 
Changeset: r322:833ded4effcf
Date: 2013-04-23 18:04 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/833ded4effcf/

Log:    (lwassermann, timfel) highlight context switches when tracing

diff --git a/spyvm/interpreter.py b/spyvm/interpreter.py
--- a/spyvm/interpreter.py
+++ b/spyvm/interpreter.py
@@ -79,6 +79,8 @@
                     s_new_context = s_sender
                 s_new_context.push(nlr.value)
             except ProcessSwitch, p:
+                if self.trace:
+                    print "====== Switch from: %s to: %s ======" % 
(s_new_context.short_str(0), p.s_new_context.short_str(0))
                 s_new_context = p.s_new_context
 
     def c_loop(self, s_context):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to