This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: how to profile gfortran code?
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: howarth at bromo dot msbb dot uc dot edu (Jack Howarth)
- Cc: fortran at gcc dot gnu dot org
- Date: Mon, 28 Nov 2005 10:30:25 -0500 (EST)
- Subject: Re: how to profile gfortran code?
>
> Can anyone describe the procedure for profiling gfortran code
> using the typical gnu devtools? While I could run Shark on MacOS X
> I was going to first try with the normal approach to profiling which
> subroutines in xplor-nih are most used in the gfortran build compared
> to the xlf build. Of course, on Darwin we don't have the option of
> using valgrind. Thanks in advance for any pointers on how to get
> started with this.
Shark is actually the best option here. valdrind is not really a
profiler. The equivalent program to Shark is oprofile but that runs
only on GNU/Linux (and only on x86_64 and i686, there might be a port to
powerPC64 too).
-- Pinski