Fortran extension to Python via f2py: How to profile? -


i'm using extension python (2.7.2) written in fortran (gfortran 4.4.7) compiled via f2py (ver. 2).

i can profile python part cprofile, result not give information fortran functions. instead time attributed python function calling fortran function.

i have enabled "-pg -o" flags fortran objects build, in f2py call creating shared object via: f2py --opt="-pg -o" ...

any hint on how fortran informations highly appreciated.

if uses similar set-up, different profiler, i'd interested.

a fortran function call appears as:

<ipython-input-51-f4bf36c6a947>:84(<module>).  

i know, can't identify module being called @ least gives idea.

another way wrapping python function , see timing python function.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -