Problems with profiling library

Benjamin Kosnik bkoz@redhat.com
Fri Jun 27 17:03:00 GMT 2003


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



More information about the Libstdc++ mailing list