Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > #calls to main::BEGIN = 6 with -d:DProf

Reply
Thread Tools

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

 
 
++imanshu
Guest
Posts: n/a
 
      01-01-2010
Hi,

I'm trying to optimize a cgi script and using -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:ath::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 -dProf

use strict;
use CGI;
use DBI;
use Digest::SHA;
use File::Basename;
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments