profiling a shared library on Linux

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

profiling a shared library on Linux

Jim Harsh
Hi All,

Our vw app uses a shared library for numerical heavy lifting. There
are a couple of routines that we are trying to improve. I've put
timers in the replacement routines and the new code runs faster but
the wall clock time is about the same as the old code. I'd like to
profile the shared library to hopefully find where we are spending
our time. I tried gprof with -pg on the compile lines of the make
file for the shared library but when I tried to do the final link of
the library, I couldn't find the /lib/gcrt0.o that one document I
found on the web referred to. (I'm using a Debian system). So I tried
valgrind. In order to get the system to accept the command line I put
/path/vwlinux86gui /path/visual.im
in a file. chmod 700 the file and ran "valgrind -tool=callgrind file"

I know this is strange but I hope someone has a suggestion.

Debian/Lenny system
Visualworks 7.5
using gcc and gfortran compilers

Thanks,
Jim

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc