Skip to content

ddev/ddev-xhgui

Repository files navigation

tests project is obsolete release

DDEV XHGui (obsolete)

This add-on is a part of DDEV since v1.24.4.

Overview

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.

Warning

This addon is for debugging in a development environment. Profiling in a production environment is not recommended.

Installation

ddev add-on get ddev/ddev-xhgui
ddev restart

After installation, make sure to commit the .ddev directory to version control.

Usage

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.

Click GET method

To check the xhgui service's logs:

ddev logs -s xhgui

Advanced Customization

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',

Credits

Contributed and maintained by @tyler36 based on the original ddev-contrib PR by @penyaskito