Skip to content
This repository has been archived by the owner on Aug 10, 2019. It is now read-only.

Missing xhprof #153

Open
sts opened this issue Oct 28, 2016 · 2 comments
Open

Missing xhprof #153

sts opened this issue Oct 28, 2016 · 2 comments

Comments

@sts
Copy link

sts commented Oct 28, 2016

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

@gplessis
Copy link
Owner

Mostly because they don't officially support PHP 7 yet phacility/xhprof#82

@ChrisWesterfield
Copy link

ChrisWesterfield commented Dec 6, 2016

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants