dda has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to debug a mod_perl application. I set up the following stuff in startup.pl:
Also I specified PerlFixupHandler Apache::DB in httpd.conf for location to be traced.$ENV{PERLDB_OPTS} = "NonStop=1 LineInfo=/tmp/db-$$.out AutoTrace=1 fra +me=1"; use Apache::DB;
After getting a simple screen (template-based) I analyzed logfile created in /tmp. It had a size of 32 Mb, and I waited about 10 minutes while it was created. I filtered out only lines containing the word 'entering', trying to get called subroutines list, and saved them to the file 'subs.log'. Look:
Below is a typical fragment of the flow:[root@linux tmp]# wc -l subs.log 43986 subs.log [root@linux tmp]# grep -i parse::recdescent subs.log |wc -l 35769
As you can see, more than 80% of calls are calls to Parse::RecDescent. Is it normal? Is such a large size of trace file normal? And number of calls to produce a single page in general?entering Parse::RecDescent::Rule::expected entering Parse::RecDescent::Production::expected entering Parse::RecDescent::Subrule::describe entering Parse::RecDescent::Rule::_contains entering Parse::RecDescent::Production::expected entering Parse::RecDescent::Subrule::describe entering Parse::RecDescent::Rule::_contains entering Parse::RecDescent::Production::expected entering Parse::RecDescent::Subrule::describe entering Parse::RecDescent::Rule::_contains entering Parse::RecDescent::Expectation::new entering Parse::RecDescent::Expectation::at entering Parse::RecDescent::LineCounter::TIESCALAR entering Parse::RecDescent::Expectation::is entering Parse::RecDescent::Expectation::at entering Parse::RecDescent::namespace000001::function_name entering CODE(0x815294d8) entering Parse::RecDescent::Rule::expected entering Parse::RecDescent::Production::expected entering Parse::RecDescent::Token::describe entering Parse::RecDescent::Rule::_contains entering Parse::RecDescent::Expectation::new entering Parse::RecDescent::Expectation::at
Please forgive my bad English.
--dda
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mod_perl application debugging
by perrin (Chancellor) on Nov 14, 2003 at 18:08 UTC | |
by dda (Friar) on Nov 14, 2003 at 20:30 UTC | |
by perrin (Chancellor) on Nov 17, 2003 at 22:18 UTC | |
|
Re: mod_perl application debugging
by rdfield (Priest) on Nov 14, 2003 at 16:51 UTC | |
by dda (Friar) on Nov 14, 2003 at 20:17 UTC | |
|
Re: mod_perl application debugging
by Anonymous Monk on Nov 14, 2003 at 17:02 UTC | |
by dda (Friar) on Nov 14, 2003 at 20:19 UTC |