This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Problems with profiling library
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Jerry Quinn <jlquinn at optonline dot net>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Fri, 27 Jun 2003 12:03:09 -0500
- Subject: Re: Problems with profiling library
- References: <16122.926.598409.529686@gargle.gargle.HOWL>
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.
>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.
Although, I've got to say, I'm sold on oprofile for accurate profiling.
If you're interested, I can give you details in a separate email about
how to get it set up (very convoluted).
-benjamin