This repository was archived by the owner on Dec 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Xhprof
James Williams edited this page Mar 15, 2017
·
10 revisions
Parrot installs the xhprof PHP extension and goes halfway to setting up the web-based user interface, though not everything is linked up to work immediately. You will need to create two symlinks inside parrot:
-
/usr/share/php-xhprof/xhprof_lib
pointing to/usr/share/php-xhprof/lib
-
/usr/share/php/xhprof_html
pointing to/usr/share/php-xhprof/html
Then you need to edit the virtual host definition for Xhprof so that the PHP is executed, adding these lines inside the <Directory>
element in /etc/apache2/conf-enabled/xhprof.conf
(inside parrot):
<FilesMatch "\.php$">
SetHandler "proxy:fcgi://127.0.0.1:9999"
</FilesMatch>
Then restart apache inside parrot (sudo service apache2 restart
), and you can access the web-based interface by visiting:
http://localhost:8181/xhprof
From the host.
If you use the Devel module you can enable xhprof logging by using the following for the settings on Devel's configuration page:
For the xhprof path:
/usr/share/php-xhprof
For the xhprof URL:
http://localhost/xhprof