perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philippe M. Chiasson" <go...@ectoplasm.org>
Subject Re: Startup Slow with DSO mod_perl
Date Tue, 21 Apr 2009 04:11:37 GMT


On 10/04/09 17:13 , David E. Wheeler wrote:
> On Apr 10, 2009, at 11:38 AM, Philippe M. Chiasson wrote:
> 
>> Not without more profiling to try and figure out where all this time
>> is being spent.
> 
> Stupid question: Can you suggest some approaches to doing such  
> profiling? I mean, I can use Devel::NYTProf or something for the Perl  
> code, but I don't know about the Apache side of thingsā€¦

oprofile is a good Linux system profiling tool, then there are the more
usual suspects:

 - strace
 - ltrace
 - ftrace

Personally, I usually often end up starting with a Perl-level profiler,
like Devel::NYTProf, and some help from strace to see where the difference
is. If it requires more digging (like time spend *outside* perl itself),
a healthy mix of the above tool with some custom aggregating scripts
works for me.

Hope this helps.

-- 
Philippe M. Chiasson     GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5
http://gozer.ectoplasm.org/       m/gozer\@(apache|cpan|ectoplasm)\.org/


Mime
View raw message