php性能检测扩展——xh prof
of 19
/19
PHP 性性性性性性—— XHProf • 野野
Embed Size (px)
DESCRIPTION
PHP性能检测扩展——XHProfTRANSCRIPT
- PHP XHProf
-
- XHProf
- XHProf
-
- XHProf PHP CPU C xhprof Zend
- XHProf facebook php Xdebug profile callgraph / XHProfd XHProf
- XHProf
-
- XHProf
-
- xhprof-0.9.2.tgz
- graphviz-2.24.0.tar.gz
- XHProf
-
- ~
- PHP.ini
- PHP
- XHProf
- # wget http://pecl.php.net/get/xhprof-0.9.2.tgz # tar zxf
xhprof-0.9.2.tgz # cd xhprof-0.9.2 # cp -r xhprof_html xhprof_lib
/var/www/www.test.com/ # cd extension/ # /usr/local/php/bin/phpize
# ./configure with-php-config=/usr/local/php/bin/php-config # make
&& make install
- XHProf
- # wget
http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.24.0.tar.gz
# tar zxf graphviz-2.24.0.tar.gz # cd graphviz-2.24.0 # ./configure
# make && make install
- Graphviz
- PHP diff CPU XHProf PHP if (mt_rand(1, 10000) == 1) { xhprof_enable(XHPROF_FLAGS_MEMORY); $xhprof_on = true; } request ( ) if ($xhprof_on) { // stop profiler $xhprof_data = xhprof_disable(); // save $xhprof_data somewhere (say a central DB) ... }
-
- QQ 46163020
- Email [email_address]
- WEB http://yuenshui.com( )