I've got a scientific code running on my mac (I'm running snow leopard) , a code written in Fortran. I've been trying to get a profile of the run time of the code, but am having little success. It appears that gprof doesn't return any actual timings, just a count on how many times a subroutine was called. I looked around, this appears to be a common problem.
I tried Saturn, but it doesn't do 64 bit and I'm usin开发者_如何学JAVAg external libraries, so that's a no go.
I also tried Shark, but the output of that is not really what I'm looking for, or at least I can't decipher it...
Anyways, just wondering if anyone knows of a profiler for the mac that works with Fortran? I'm using Intel's ifort to compile.
You should be able to use the Time Profiler in Instruments (part of the Developers tools). I've used it before for Fortran programs and been very impressed.
One workaround could be to convert the code to C (Convert Fortran to C or C++) and then to profile it
精彩评论