Basic POC of installing a custom xhprof revision into the official Docker PHP image.
To try, simply run
git clone https://github.com/janpapenbrock/docker-php-xhprof.git
cd docker-php-xhprof
chmod a+w xhprof
docker-compose up
And visit http://localhost/ in your browser.
A new .xhprof
data file should have been created in xhprof/
.
Xhprof reports are available at http://localhost:8080/.
To use it in your project, copy the relevant parts from Dockerfile
and docker-compose.yml
as well as htdocs/xhprof-bootstrap.php
into your application.