Re: simplelist speed - profiling




Does anyone know the trick to profiling perl code?

I started with  perl -d:DProf, but all that shows me is:

%Time ExclSec CumulS #Calls sec/call Csec/c  Name
 68.3   7.040  7.040      1   7.0399 7.0398  Gtk2::main

so I know my CPU time is spent in gtk.

Then I recompiled Gtk2-1.061 with CCFLAGS=-pg and produced a Gtk2.so.
Then I compiled perl with Configure -Doptimize=-pg and ran my perlscript
with perl.gprof.  That produced a gmon.out, but gtk never appears
in the output, only the perl module itself, like this:


  %   cumulative   self              self     total           
 time   seconds   seconds    calls  us/call  us/call  name    
 10.29      0.14     0.14    83933     1.67     1.93  S_hv_fetch_common
  5.15      0.21     0.07    24160     2.90     2.93  Perl_gv_fetchpv
  5.15      0.28     0.07      166   421.69   480.69  Perl_yyparse

Is there some way to profile the lower layers of this stuff?

-- 
Dan Espen                           E-mail: dane mk telcordia com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]