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/

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to