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 with the flags "-g -pg". Next, I've set the variable LD_PROFILE to the library I want to analyze: "LD_PROFILE=/path/to/lirary.so". Then, I ran the program and got the file "gmon.out". However, when I execute "gpof MYEXECUTABLE gmon.out" all the displayed functions have a time of 0 seconds (number of calls is available) and I can't find and references to the function from the library I specified by LD_PROFILE.
What am I doing wrong? I was looking in the internet for a solution but could not find any helpful hints. Thank you. Regards, Christian -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer