[PHP] Re: Question on code profiling

2009-07-24 Thread Lupus Michaelis

Andrew Ballard a écrit :

I'm trying to profile a site on our development server to see why it
takes around 4 seconds to generate a pretty basic page.
  Last time I seen this is when I did validate DOM Document without DTD 
on local disk :D


  Can you put somewhere the essential code that take time ?

--
Mickaël Wolff aka Lupus Michaelis
http://lupusmic.org

Seeking for a position http://lupusmic.org/pro/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Question on code profiling

2009-07-24 Thread Andrew Ballard
On Fri, Jul 24, 2009 at 2:27 AM, Lupus
Michaelismickael+...@lupusmic.org wrote:
 Andrew Ballard a écrit :

 I'm trying to profile a site on our development server to see why it
 takes around 4 seconds to generate a pretty basic page.

  Last time I seen this is when I did validate DOM Document without DTD on
 local disk :D

  Can you put somewhere the essential code that take time ?

 --
 Mickaël Wolff aka Lupus Michaelis
 http://lupusmic.org

Not really. I haven't written much for this site yet, so the bulk of
the code is just the framework itself. If I can't find anything, I'll
probably be posting on the ZF mailing list next. I have had really
good experiences with ZF on a couple shared-hosting Linux servers I've
used, but performance on Windows so far has been dismal.

Andrew

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Question on code profiling

2009-07-23 Thread Jonathan Tapicer
Just an idea: try using the (microtime(true) - $start) approach in
portions of code to try isolate the portion that is taking more time.
Sometimes that helps me to find the function that is slowing
everything down.

Jonathan

On Thu, Jul 23, 2009 at 6:18 PM, Andrew Ballardaball...@gmail.com wrote:
 On Thu, Jul 23, 2009 at 5:10 PM, Ben Dunlapbdun...@agentintellect.com wrote:
 significant (around 46%), it says they only account for 193ms. What
 could account for that much difference between what xdebug calculates
 versus the total elapsed time?

 Are you counting total elapsed time from the perspective of the web 
 browser?
 If so, YSlow might be helpful:

 http://developer.yahoo.com/yslow/

 Ben
 --
 Twitter: @bdunlap


 I'm using YSlow too.

 Here's the last run I did:
 YSlow: 4.494 seconds
 Elapsed (microtime(true) - $start): 3.990795135498 seconds
 xdebug(WinCacheGrind): 402ms (0.402 seconds)

 Andrew

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php