- xhprof or tideways
- graphviz
yum install -y graphviz
git clone https://github.com/Yaoguais/phpng-xhprof.git
cd phpng-xhprof
phpize
./configre --with-php-config=/path/to/php-config
make && make install
add the configuration into php.ini
[xhprof]
extension=phpng_xhprof.so
xhprof.output_dir=/path/to/data
;xhprof.count_prefix=
git clone https://github.com/tideways/php-profiler-extension.git
cd php-profiler-extension
phpize
./configure --with-php-config=/path/to/php-config
make && make install
add the configuration into php.ini
[tideways]
extension=tideways.so
tideways.auto_prepend_library=0
xhprof.output_dir=/path/to/data
pass the auto_prepend_file to PHP-FPM
fastcgi_param PHP_VALUE "auto_prepend_file=/path/to/gen.php";
add the configuration into php-fpm configure file
php_admin_value[auto_prepend_file]=/path/to/gen.php