Esempio n. 1
0
 def mainloop(code, level):
     if level > 0:
         mainloop(code, level - 1)
     else:
         p, length = traceback.traceback(20)
         traceback.walk_traceback(MyCode, my_callback, 42, p, length)
         lltype.free(p, flavor="raw")
Esempio n. 2
0
 def mainloop(code, level):
     if level > 0:
         mainloop(code, level - 1)
     else:
         p, length = traceback.traceback(20)
         traceback.walk_traceback(MyCode, my_callback, 42, p, length)
         lltype.free(p, flavor='raw')
Esempio n. 3
0
 def mainloop(code, level, total_i):
     i = 20
     while i > 0:
         jitdriver.jit_merge_point(code=code)
         i -= 1
         if level > 0:
             mainloop(code, level - 1, total_i + i)
     if level == 0 and total_i == 0:
         p, length = traceback.traceback(20)
         traceback.walk_traceback(MyCode, my_callback, 42, p, length)
         lltype.free(p, flavor="raw")
Esempio n. 4
0
 def mainloop(code, level, total_i):
     i = 20
     while i > 0:
         jitdriver.jit_merge_point(code=code)
         i -= 1
         if level > 0:
             mainloop(code, level - 1, total_i + i)
     if level == 0 and total_i == 0:
         p, length = traceback.traceback(20)
         traceback.walk_traceback(MyCode, my_callback, 42, p, length)
         lltype.free(p, flavor='raw')
Esempio n. 5
0
def _dump_callback(fd, array_p, array_length):
    """We are as careful as we can reasonably be here (i.e. not 100%,
    but hopefully close enough).  In particular, this is written as
    RPython but shouldn't allocate anything.
    """
    traceback.walk_traceback(PyCode, dump_code, fd, array_p, array_length)
Esempio n. 6
0
def _dump_callback(fd, array_p, array_length):
    """We are as careful as we can reasonably be here (i.e. not 100%,
    but hopefully close enough).  In particular, this is written as
    RPython but shouldn't allocate anything.
    """
    traceback.walk_traceback(PyCode, dump_code, fd, array_p, array_length)