Hi all,
How can you profile a dynamically linked application? I have limited experience using gprof, but only with statically linked programs. Doing the same procedure with this dynamically linked app is not satisfactory b/c it doesn't detect any of the dynamically linked functions.
I'm hoping the answer is not "switch to static linking" b/c to be honest I don't know how to do that. The application is pretty big, was written by many people, and the dynamic libraries are part of the code design. (It solves PDEs; we use dynamic linking to do things like load a certain type of equation set at run-time.)
I have access to the gnu compilers & the intel compilers. Intel has that "pgo" framework, but I don't know how to view the .dyn files instead of feeding them to the compiler for automatic optimization. Also I don't currently have VTune but I can get it.
-Eric
How can you profile a dynamically linked application? I have limited experience using gprof, but only with statically linked programs. Doing the same procedure with this dynamically linked app is not satisfactory b/c it doesn't detect any of the dynamically linked functions.
I'm hoping the answer is not "switch to static linking" b/c to be honest I don't know how to do that. The application is pretty big, was written by many people, and the dynamic libraries are part of the code design. (It solves PDEs; we use dynamic linking to do things like load a certain type of equation set at run-time.)
I have access to the gnu compilers & the intel compilers. Intel has that "pgo" framework, but I don't know how to view the .dyn files instead of feeding them to the compiler for automatic optimization. Also I don't currently have VTune but I can get it.
-Eric
