This add-on is a part of DDEV since v1.24.4.
XHGui is a graphical interface for XHProf profiling data that stores its results the database.
This add-on integrates XHGui into your DDEV project.
See https://performance.wikimedia.org/xhgui/ for an demonstration of XHGui data collection.
This addon is for debugging in a development environment. Profiling in a production environment is not recommended.
ddev add-on get ddev/ddev-xhgui
ddev restart
After installation, make sure to commit the .ddev
directory to version control.
When you want to start profiling, ddev xhprof on
.
The web profiling UI is at https://yourproject.ddev.site:8143
or use ddev xhgui
to launch it.
For detailed information about a single request, click on the "Method" keyword on the "Recent runs" dashboard.
To check the xhgui service's logs:
ddev logs -s xhgui
To configure XHGui, add .ddev/xhgui/xhgui.config.php
.
For example, to set xhgui to use Asia/Tokyo
timezone for dates:
-
Remove
#ddev-generated
from.ddev/xhgui/xhgui.config.php
-
Change the timezone value
'timezone' => 'Asia/Tokyo', 'date.format' => 'Y-m-d H:i:s',
Contributed and maintained by @tyler36 based on the original ddev-contrib PR by @penyaskito