-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Added CLI command to enable and disable the Profiler #11407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added CLI command to enable and disable the Profiler #11407
Conversation
I thought about replacing the forward slashes in So I'm guessing Windows hosting isn't supported anymore. |
It was never supported, however, using forward slash does not cause any trouble under Windows :) Problems start when we need to compare some file path returned by a function, there a lot of |
@orlangur so you advise against using the constant? |
Nope, you can use forward slash and it will not cause any troubles even under Windows. |
@orlangur I've pushed my changes to my branch (https://github.com/peterjaap/magento2/commits/cli-command-profiler) but they're not showing up here? |
@peterjaap I see them now, maybe there was a small lag. |
@orlangur ah yeah great. Now we just have to wait a gazillion hours for Travis to start&finish.... |
@orlangur now Travis fails while saying "The job exceeded the maximum time limit for jobs, and has been terminated.". Help? |
@peterjaap this was fixed in #11555. Please apply your changes as a single commit on top of |
3910682
to
4c26acf
Compare
@orlangur yes, thanks. All checks passed! |
@orlangur @okorshenko what's the status on this? |
…11407 - fixed code style issues
Hi @peterjaap sorry for the delay. We had some internal discussions about this PR. |
Not seeing this in 2.2.3 ?
|
@centminmod correct, 2.2.3 was primarily a security update http://devdocs.magento.com/guides/v2.2/release-notes/ReleaseNotes2.2.3CE.html, but this command will be contained in 2.2.4 for sure: https://github.com/magento/magento2/tree/2.2.4-preview/app/code/Magento/Developer/Console/Command |
Added CLI command to enable and disable the Profiler
Description
Adjusted
app/bootstrap.php
to have it read out the flagfilevar/profiler.flag
to enable the profiler and added CLI commands to create and remove the file.Fixed Issues (if relevant)
Manual testing scenarios
php bin/magento dev:profiler:enable
Or;
php bin/magento dev:profiler:enable csvfile
var/log/profiler.csv
Contribution checklist