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

I

++imanshu

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;
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top