How to obtain how much time is spent in f2py wrappers

半腔热情 提交于 2019-12-12 04:16:13

问题


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-spent-in-f2py-wrappers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!