#calls to main::BEGIN = 6 with -d:DProf

Discussion in 'Perl Misc' started by ++imanshu, Jan 1, 2010.

  1. ++imanshu

    ++imanshu Guest

    Hi,

    I'm trying to optimize a cgi script and using -d:DProf for
    profiling.

    C:\Program Files\Apache Software Foundation\Apache2.2\cgi-bin>c:\Perl
    \bin\dprofpp.bat tmon.out
    Total Elapsed Time = 0.279350 Seconds
    User+System Time = 0.264350 Seconds
    Exclusive Times
    %Time ExclSec CumulS #Calls sec/call Csec/c Name
    41.6 0.110 0.248 6 0.0183 0.0414 main::BEGIN
    12.1 0.032 0.032 6 0.0053 0.0053 ActiveState::path::BEGIN

    Could you tell me why #Calls to main::BEGIN increases as I
    include more and more modules.

    Thank You,
    Himanshu

    test.cgi :-

    #!/usr/bin/perl -d:DProf

    use strict;
    use CGI;
    use DBI;
    use Digest::SHA;
    use File::Basename;
    ++imanshu, Jan 1, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Walter Roberson

    DProf %time ?

    Walter Roberson, Feb 3, 2004, in forum: Perl Misc
    Replies:
    1
    Views:
    90
    Ilya Zakharevich
    Feb 3, 2004
  2. flazan

    Dprof in a multiprocess script

    flazan, May 4, 2004, in forum: Perl Misc
    Replies:
    0
    Views:
    128
    flazan
    May 4, 2004
  3. crez

    System::DProf and system()

    crez, Oct 27, 2006, in forum: Perl Misc
    Replies:
    1
    Views:
    72
  4. howa

    Profiling using DProf

    howa, Oct 31, 2008, in forum: Perl Misc
    Replies:
    2
    Views:
    99
    brian d foy
    Oct 31, 2008
  5. zikester

    dprof: alternate path

    zikester, Feb 22, 2010, in forum: Perl Misc
    Replies:
    0
    Views:
    88
    zikester
    Feb 22, 2010
Loading...

Share This Page