profiling within one subroutine

Hello!

I’m wondering if there is any possibility to profile the time usage within one long subroutine because I want to know which part of this subroutine is most time consuming. I know that other compilers have the possibility to use directives which build “profile regions”, such that these regions are treated like separate subroutines by the profiler.

I use pgf90 7.0-4 in combination with pgprof.

Thanks for your help!
Jan

Hi,

Try -Mprof=lines on that file/function.

Hongyon

Hey!

Thanks, I think I can live with that!