[pypy-dev] why doesn't this code dump jit debug info ?

Shubha Ramani shubharamani at yahoo.com
Thu Dec 8 16:49:39 EST 2016


import py                                                                                             import binary_trees                                                                                   import os                                                                                             from rpython.rlib.rjitlog import rjitlog                                                                                                                                                                    def test_binary_trees():                                                                                  file = ('./jit.log')                                                                                  fileno = os.open(file, os.O_WRONLY | os.O_CREAT)                                                      enable_jitlog = lambda: rjitlog.enable_jitlog(fileno)                                                 os.system("./binary_trees.py 100 100")                                                                                                                                                                                     

running it as  /opt/pypy/pytest.py test_shubha.py
The log gets created but it is empty 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20161208/a1683d48/attachment.html>


More information about the pypy-dev mailing list