Closed sreichel closed 3 days ago
@sreichel - Before starting testing I would like to clarify all the steps based on the description.
perftools/php-profiler
package using the commandddev composer require perftools/php-profiler --dev
if (file_exists("/mnt/ddev_config/xhgui/collector/xhgui.collector.php")) {
require_once "/mnt/ddev_config/xhgui/collector/xhgui.collector.php";
}
<?php
if (getenv('IS_DDEV_PROJECT') && getenv('NO_XHGUI') !== '1') {
if (file_exists($xhgui = '/mnt/ddev_config/xhgui/collector/xhgui.collector.php')) {
require_once $xhgui;
}
}
Run the ddev xhprof
command to start profiling. XHGui is now available at https://yourproject.ddev.site:8142.
Run the ddev xhgui
to watch results.
Have I missed anything so far? It will help me to add this information in this file https://github.com/OpenMage/magento-lts/blob/f39a667c9d9eda4c4c015e29f40c78d8ed2dec38/docs/content/developers/ddev.md, after merging.
In this comment https://github.com/ddev/ddev-xhgui/pull/33#issuecomment-2450269258 you say the step 2 from above has no effect, we don't need to edit app/Mage.php, but it is still in the DDEV-XHGui documentation.
Have I missed anything so far?
No. This should be all.
In this comment https://github.com/ddev/ddev-xhgui/pull/33#issuecomment-2450269258 you say the step 2 from above has no effect, we don't need to edit app/Mage.php, but it is still in the DDEV-XHGui documentation.
DOC will be updated later.
OK. Please resolve the conflict related to the composer.lock file.
It will help me to add this information in this file.
Thanks. :)
But wait for https://github.com/ddev/ddev-xhgui/pull/33. This could be automated a bit.
Description (*)
Support https://github.com/ddev/ddev-xhgui
Related Pull Requests
Manual testing scenarios (*)
Using DDEV ...
ddev.xhgui.php
toapp/etc/includes
ddev xhprof
... to enable profilerddev xhgui
... to watch results