How to obtain how much time is spent in f2py wrappers
问题 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? 回答1: At last I found out -DF2PY_REPORT_ATEXIT option can report wrapper performance. 来源: https://stackoverflow.com/questions/35968682/how-to-obtain-how-much-time-is