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]

Problems with profiling library


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


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