Closed hkirsman closed 1 year ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions and please check out this if you are wondering why we auto close issues.
This should cover profiling mode as well: https://github.com/lando/lando/issues/2718#issuecomment-770769207
You can use lando xdebug profile
now with this recipe: https://github.com/lando/lando/issues/1668#issuecomment-772829423.
@tormi does your recipe solve the log location as well?
@Preen , what about the log location? You can define a custom xdebug.output_dir in the .lando/php.ini
of my recipe https://github.com/lando/lando/issues/1668#issuecomment-772829423.
Yeah sorry, that solved it. Thanks for a great recipe! :)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions and please check out this if you are wondering why we auto close issues.
We haven't heard anything here for about a year so we are automatically closing this issue to keep things tidy. If this is in error then please post in this thread and request the issue be reopened!
Please explain your request and its importance in the form of a user story.
As a lando user who works with Drupal sites you sometimes need to profile your code to see what part of code takes longer time to execute. XDebug allows you to dump cachegrind file and then you can open it for example with KCachegrind https://kcachegrind.github.io/html/Home.html
It's possible to enable this feature in Lando if you define custom php.ini location and enable xdebug:
And then in .lando/php.ini (I've added also max_execution_time as the site gets slower with this enabled).
And then ofcourse:
Is your feature request related to a problem? Please describe. Problem is the speed of how to set this feature up and when done, also the removal part.
Describe the solution you'd like This is solution that would already work - to have lando profiling-on and lando profiling-off command. This is based on https://github.com/lando/lando/issues/1668
Describe alternatives you've considered Alternative would be to install some tool on the server like New Relic and profile the code on the go.
Additional context