Do you know where your variables are? | |
PerlMonks |
Measuring mod_perl with Apache::DProfby redhotpenguin (Deacon) |
on Dec 07, 2007 at 05:25 UTC ( [id://655585]=perlquestion: print w/replies, xml ) | Need Help?? |
redhotpenguin has asked for the wisdom of the Perl Monks concerning the following question: I've been using Apache::DProf to figure out where my code in mod_perl is running slow. There are some socket calls out to other services, so I used '-r' to measure real time as opposed to cpu time. My::Apache::Handler::handler calls several subroutines, but I haven't been able to get dprofpp to tell me how much time it is spending in those subs. I've gone over the docs, and the writeup at perl.com, but have come up empty. I've started to use dtrace, but I'd really like to be able to figure out what I need to know with dprofpp. I've tried SmallProf but it didn't play nice with my application. Any suggestions?
p.s. - I'm using Apache::DProf, not Devel::Profiler::Apache because I'm using mod_perl2. SOLVED - I was doing 'use Apache::DProf' in my startup.pl instead of PerlModule Apache::DProf in my httpd.conf. I added a PerlSection also, here is the total code now:
I had this stuff loading conditionally in startup.pl if My::Config->profile was set to true. Sucks to be me, but I'm glad it is working now. Thanks for your help again Monks.
Back to
Seekers of Perl Wisdom
|
|