|Don't ask to ask, just ask|
Dprof and main::BEGINby dbush (Deacon)
|on Nov 29, 2002 at 12:58 UTC||Need Help??|
dbush has asked for the wisdom of the Perl Monks concerning the following question:
I am currently doing some performance tuning and have a question regarding the output of Dprofpp. I am seeing that the majority of time (40% or more) is being taken up with many thousands of calls to main::BEGIN.
The typical output that I'm getting looks like this:
I had a super search and a look on CPAN. I found the following useful:
One further thing that might be useful are the modules that I'm using:
... I mention this as I think the BEGIN block is called by AUTOLOADER when use-ing modules but I'm afraid that I'm not very clear on the details. One thought that I had was that Dprof was counting the BEGIN blocks in the imported modules but not labelling them correctly in the output. Plausible or not?