| View previous topic :: View next topic |
| Author |
Message |
Mr. JS
Joined: 02 Jul 2008 Posts: 3 Location: Kiel, Germany
|
Posted: Wed Jul 02, 2008 9:55 am Post subject: 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 |
|
| Back to top |
|
 |
hongyon
Joined: 19 Jul 2004 Posts: 551
|
Posted: Wed Jul 02, 2008 10:14 am Post subject: |
|
|
Hi,
Try -Mprof=lines on that file/function.
Hongyon |
|
| Back to top |
|
 |
Mr. JS
Joined: 02 Jul 2008 Posts: 3 Location: Kiel, Germany
|
Posted: Thu Jul 03, 2008 8:55 am Post subject: |
|
|
Hey!
Thanks, I think I can live with that! |
|
| Back to top |
|
 |
|