Can you use gprof on shared libraries?

2009-02-19 Thread Scott Simpson
I have a single threaded application that uses shared libraries. I compile the app and the shared libraries with -pg. This gives me a gmon.out when I run, however, gprof doesn't seem to print any of the information from the shared libraries. Is there any way to get this information in shared

Gprof and shared libraries

2006-12-28 Thread Christian Sturz
Hi, I've a larger project that consists of several shared libraries. The compilation is done by autoconf and automake. One of the libraries seems to be slow so I would like to profile it. My idea was to use gprof (I'm using gcc 3.4.6). First, I modified the Makefiles so that each library is built

Re: Gprof and shared libraries

2006-12-28 Thread Ian Lance Taylor
Christian Sturz [EMAIL PROTECTED] writes: I've a larger project that consists of several shared libraries. The compilation is done by autoconf and automake. One of the libraries seems to be slow so I would like to profile it. My idea was to use gprof (I'm using gcc 3.4.6). First, I modified

Re: Gprof and shared libraries

2006-12-28 Thread Daniel Jacobowitz
On Thu, Dec 28, 2006 at 09:28:30AM -0800, Ian Lance Taylor wrote: I don't know the answer to your question. It may be that you need to run gprof /path/to/lirary.so gmon.out. I'm not sure. Gprof has roughly no support for shared libraries. Only addresses between _stext and _etext are