I am currently writing a time consuming python program and decided to rewrite part of the program in fortran. However, the performance is still not good. For profiling purpose, I want to know how much time is spent in f2py
wrappers and how much time is actual spent in fortran subroutines. Is there a convenient way to achieve this?
At last I found out -DF2PY_REPORT_ATEXIT
option can report wrapper performance.