Php profiling - need some advice -


i'm pretty new php , absolutely new profiling, please forgive me if question little bit "simple".

so enabled xdebug , downloaded kcachegrid begin profiling, read through find. problem i'd improve speed, whenever view xdebug reports in kcachegrid, same script same hardware runs merely different execution time (form 1.1 1.9 sec). i'm executing on localhost not have deal network speed.

i've read pretty article john lim http://phplens.com/lens/php-book/optimizing-debugging-php.php , in article he's dealing fix execution time. don't know doing wrong or how fix times can see if better results.

any advice appriciated, or resource have read , found useful on php profiling. replies!

xdebug found xhprof extension written facebook production profiling works lot better. shows wall times of functions , stack of call , can drill down many levels , see wall time on each call. can compare , consolidate similar calls , compare them on period of time. have @ demo on xhprof , simple extension implement. matter of enabling header , footer , off races.

http://xhprof.io/

cheers, thusjanthan


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -