dotdeb-php icon indicating copy to clipboard operation
dotdeb-php copied to clipboard

Missing xhprof

Open sts opened this issue 8 years ago • 2 comments

Xhprof isn't available for the php7.0 packages yet. Is there a specific reason, or can it be added?

sts avatar Oct 28 '16 12:10 sts

Mostly because they don't officially support PHP 7 yet https://github.com/phacility/xhprof/issues/82

gplessis avatar Oct 28 '16 14:10 gplessis

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

ChrisWesterfield avatar Dec 06 '16 23:12 ChrisWesterfield