This tool is based on original GUI for Xhprof from Facebook.
It allows to:
- Compare more then two profile runs at the same time without restriction about the same namespace (against of the same namesapace of two runs only in native Xhprof GUI)
- Set custom comments for runs
- Delete chosen runs files directly from new GUI
- Have better navigation to native reports (diff, aggregate)
- PHP 5.6 or latter
- To install Xhprof see original documentation in /xhprof_html/docs/ folder
- To use opportunities of new GUI just open address /xhprof_html/xhprof_admin/. You should open /xhprof_admin/ if mapping is set to /xhprof_html/ folder.
On this page you can see all profile sessions (which are referred to as a runs) sorted by file date with all possible operations and drill down links.
There are links to:
- new full report
- original Xhprof GUI report
- original Xhprof callgraph
To compare two and more runs:
- Select runs to compare on admin page.
- Set sort value to define order in which runs will be printed in table. The least value will be the base run.
- Check calc average if you need to print average values of each function metric.
- Click Compare runs
The view of report: Each metric column is separated with bold line and consists of runs columns.
You can drill down into function report of a run by clicking on the cell in sorted metric column.
To sort by metric just click on appropriate column.
Only top 100 functions are printed by default. To display all functions click display all.
Improvements are marked with green color, regressions with red.
Click to View all available runs to return to the Admin page.
Click to Show/hide average values to add/remove average metric in the table.
To exclude run from report click on exclude in Compared runs info table.
You can set custom comments to each run on Admin Page by typing in custom comment column and clicking on Save custom comment.
Just check runs to delete and click on Delete selected runs. It will delete run files with run comment files.