Thanks for replying...
I have done some profiling with Apache::DProfile, and this is the output of
'dprofpp tmon.out':
Total Elapsed Time = 160.2141 Seconds
User+System Time = 13.07412 Seconds
Exclusive Times
%Time ExclSec CumulS #Calls sec/call Csec/c Name
92.7 12.12 13.575 1 12.127 13.574 ELRes::ApacheHandler::handler
3.13 0.409 0.409 90360 0.0000 0.0000 Date::Simple::as_iso
2.20 0.288 0.366 20364 0.0000 0.0000
Params::Validate::_check_regex_fro
m_xs
1.53 0.200 0.200 29966 0.0000 0.0000 Date::Simple::DESTROY
1.35 0.177 0.177 6565 0.0000 0.0000 Storable::mretrieve
0.66 0.086 0.086 36878 0.0000 0.0000 Date::Simple::_compare
0.58 0.076 0.076 1761 0.0000 0.0000 DBD::_::db::prepare_cached
0.46 0.060 0.060 24782 0.0000 0.0000 Date::Simple::_add
0.32 0.042 0.042 2900 0.0000 0.0000 ELRes::Entity::DESTROY
0.25 0.033 0.033 3700 0.0000 0.0000 DBI::common::FETCH
0.18 0.023 0.023 3692 0.0000 0.0000 DBI::st::fetch
0.12 0.016 0.016 1756 0.0000 0.0000 ELRes::DB::DESTROY
0.08 0.011 0.011 9528 0.0000 0.0000 Date::Simple::__ANON__
0.08 0.010 0.010 1 0.0100 0.0100 DynaLoader::bootstrap
0.08 0.010 0.010 2 0.0050 0.0050 DBD::mysql::db::_login
I doubt the ApacheHandler::handler subroutine runs that long, because it
only shows the accumulated time used by other subroutines it calls. That
makes the profile isn't really accurate. How do I make it to show the
statistics of the subroutines called from the handler?
Thank you...
---
Badai Aqrandista
Cheepy (?)
From: "Philip M. Gollucci" <[EMAIL PROTECTED]>
To: Badai Aqrandista <[EMAIL PROTECTED]>
CC: modperl@perl.apache.org
Subject: Re: web application speed problem with OO modules
Date: Mon, 15 Aug 2005 00:32:09 -0400
(I only try to improve the speed of the code, so the use of proxy
shouldn't be relevant here - I think, I could be wrong).
You might try using
Apache::DProf
and/or
Apache::SmallProf
available here to see where your code is spending its time
http://search.cpan.org/~fwiles/Apache-DB
_________________________________________________________________
Low rate ANZ MasterCard. Apply now!
http://clk.atdmt.com/MAU/go/msnnkanz0030000006mau/direct/01/ Must be over
18 years.