Xhprof can be used to profile your PHP Application.
XHProf integration is disabled by default as it causes a performance hit. To enable it:
fin config set --env=local XHPROF_ENABLED=1
fin project start
To verify that Xhprof was enabled:
$ fin exec php -i | grep -i xhprof
/usr/local/etc/php/conf.d/docker-php-ext-xhprof.ini,
extension 'xhprof' detected
xhprof
xhprof support => enabled
xhprof.collect_additional_info => 0 => 0
xhprof.output_dir => /tmp/xhprof => /tmp/xhprof
xhprof.sampling_depth => 0x7fffffff => 0x7fffffff
xhprof.sampling_interval => 100000 => 100000
To profile a Drupal application the Xhprof module can be downloaded
and enabled. Once enabled and Enable profiling of page views.
has been checked. This should start recording
application calls and performance monitioring.
For examples on how to use this with other PHP applications reference the php.net Examples.
Use http://xhprof.<VIRTUAL_HOST>
to access the Xhprof web UI.
Was this page helpful?
Thanks for the feedback. If you have a specific, answerable question about how to use Docksal, ask it in Discussions on GitHub. Open an issue if you want to report a problem or suggest an improvement. You can also contribute changes to this page using the link in the top right corner.