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?
Asked
Active
Viewed 91 times
0

atbug
- 818
- 6
- 26
-
take a look on cProfile, otherwise you could always split some timings into your code here and there? – Deusdeorum Mar 13 '16 at 09:38
-
It seems cProfile doesn't dig into f2py wrappers. – atbug Mar 13 '16 at 09:40