dotdeb-php
dotdeb-php copied to clipboard
Missing xhprof
Xhprof isn't available for the php7.0 packages yet. Is there a specific reason, or can it be added?
Mostly because they don't officially support PHP 7 yet https://github.com/phacility/xhprof/issues/82
try using Tideways Profiler
https://github.com/tideways/php-profiler-extension.git
it's 100% compatible (the profiles) with xhprof but is compatible to php7
Only the calls for start profiling and end are different (including properties for profiling) Imho it's faster then xhprof and they develop it for the newer versions of php as well.
I install it like this:
cd /usr/src
git clone https://github.com/tideways/php-profiler-extension.git
cd php-profiler-extension
/usr/bin/phpize
make clean
./configure CFLAGS="-O2 -g" --enable-tideways --enable-shared --with-php-config=/usr/bin/php-config
make -j cat /proc/cpuinfo | grep processor | wc -l
make install
then you only need to create the include files:
nano /etc/php/mods-available/tideways.ini ; configuration for php tideways module ; priority=20 extension=tideways.so tideways.api_key=set your key tideways.auto_prepend_library=0 tideways.auto_start=0
Then link the config file:
ln -s /etc/php/7.0/mods-available/tideways.ini /etc/php/7.0/cli/conf.d/20-tideways.ini ln -s /etc/php/7.0/mods-available/tideways.ini /etc/php/7.0/fpm/conf.d/20-tideways.ini
thats it