Re: Re: Question on code profiling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 Ballard<aballard@xxxxxxxxx> wrote:
> On Thu, Jul 23, 2009 at 5:10 PM, Ben Dunlap<bdunlap@xxxxxxxxxxxxxxxxxx> 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux