Problems with profiling library
Jerry Quinn
jlquinn@optonline.net
Wed Jun 25 21:41:00 GMT 2003
Hi, all. I used to be able to build a profiling library and do
performance analysis that way, but it no longer works for me. My
procedure was:
cd <build>/i686-pc-linux-gnu/libstdc++-v3
make clean
make CXXFLAGS='-O2 -pg -fprofile-arcs -ggdb3' install
Then rebuild my test program with the same flags. I could then run
the program followed by gprof and get usable statistics. This worked
for 3.3 and early on after the 3.3 split on mainline.
Now, when I do the same thing, I get nothing useful. The flat profile
for my simple testcase looks like:
% cumulative self self total
time seconds seconds calls Ts/call Ts/call name
100.00 0.29 0.29 main
0.00 0.29 0.00 20000008 0.00 0.00 data_start
0.00 0.29 0.00 1 0.00 0.00 _GLOBAL__I_main_GCOV
jlquinn@smaug:~/gcc/test$ gprof -v
GNU gprof 2.14.90.0.4
Any ideas how to figure out what's broken here? It's making life a
little difficult for me :-)
Thanks,
Jerry Quinn
More information about the Libstdc++
mailing list