I can do export PYPYLOG=jit-backend-dump:shubha.log and I can do export
PYPYLOG=jit-backend-addr:shubha.logwhile running the attached file which
computes Fibonacci numbers. I run the script just by pypy fib.py and I did
addthe requisite jitdriver and merge_point stuff.
My question is, is there a way to get both jit-backend-addr and
jit-backend-dump in the same log ?
Also what other options are there for PYPYLOG besides the 2 mentioned,
jit-backend-dump and jit-backend-addr ?
Thanks,
Shubha
from rpython.rlib.jit import JitDriver
def fib(n):
if n == 0 or n == 1:
return 1
return fib(n - 1) + fib(n - 2)
def f(n):
myjitdriver = JitDriver(greens=[], reds='auto')
myjitdriver.jit_merge_point()
for i in range(2000):
#print(" i: %s"%(i))
fib(n)
if __name__ == '__main__':
f(25)
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev