atbug
atbug

Reputation: 838

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?

Upvotes: 0

Views: 107

Answers (1)

atbug
atbug

Reputation: 838

At last I found out -DF2PY_REPORT_ATEXIT option can report wrapper performance.

Upvotes: 1

Related Questions