This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problems with profiling library


Benjamin Kosnik writes:
 > 
 > You'd talked a bit about throwing these flags into the --enable-debug
 > mix. I (still) think this is a good idea, if you want to add it.

I was actually thinking of an --enable-profile equivalent.  I don't
think you'd want profiling enabled all the time when debugging.

 > >cd <build>/i686-pc-linux-gnu/libstdc++-v3
 > >make clean
 > >make CXXFLAGS='-O2 -pg -fprofile-arcs -ggdb3' install
 > 
 > I used
 > 
 > CXXFLAGS='-pg -O0 -g'
 > 
 > And it worked. I'm using a 20030216 toolchain at the moment to debug.
 > See debug/11325.

Turns out if I link my program with the profiled lib staticly, then
the profiling works as expected.  It would probably be good to
understand why it doesn't otherwise.  Not sure where to start
though...

Jerry


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]