Note the huge amount of time taken in 'Main:Begin'. What does that mean? Does that mean that the majority of this code is burning its time in the actual main function...
Here's what it means
D:\> D:\>more hi.pl BEGIN { use DBI; use CGI; } hi(); sub hi{ print "Hi there\n"; } D:\>perl -d:DProf hi.pl Hi there D:\>dprofpp tmon.out Total Elapsed Time = 0.108110 Seconds User+System Time = 0.108110 Seconds Exclusive Times %Time ExclSec CumulS #Calls sec/call Csec/c Name 14.8 0.016 0.016 1 0.0160 0.0160 Fh::BEGIN 14.8 0.016 0.016 6 0.0027 0.0027 constant::BEGIN 14.8 0.016 0.047 13 0.0012 0.0036 DBI::BEGIN 14.8 0.016 0.093 5 0.0032 0.0186 main::BEGIN 13.8 0.015 0.031 1 0.0150 0.0308 ActivePerl::Config::overr +ide 13.8 0.015 0.015 3 0.0050 0.0050 CGI::BEGIN 0.00 0.000 0.000 1 0.0000 0.0000 Config::launcher 0.00 0.000 0.000 1 0.0000 0.0000 Config::fetch_string 0.00 0.000 0.000 1 0.0000 0.0000 Exporter::Heavy::heavy_ex +port_ok_t ags 0.00 - -0.000 1 - - warnings::import 0.00 - -0.000 1 - - File::Basename::fileparse +_set_fsty 0.0000 pe 0.00 - -0.000 1 - - Cwd::bootstrap 0.00 - -0.000 1 - - DBI::DBI_tie::TIEHASH 0.00 - -0.000 1 - - overload::OVERLOAD 0.00 - -0.000 1 - - CGI::initialize_globals D:\>
Notice how hi has very short runtime, while loading DBI/CGI takes more time.

In reply to Re: dprofpp'ing a pesky file - any input? by Anonymous Monk
in thread dprofpp'ing a pesky file - any input? by MashMashy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.