-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[DebugBundle][HttpKernel] Collect dumps when console profiling is enabled #62027
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
base: 7.4
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't this be dealt with outside of the class? Inside the injected dumper?
I'm asking because this makes the constructor a bit weird.
Some explanations could be helpful.
* @return void | ||
*/ | ||
public function configure() | ||
public function configure(/* ?ConsoleCommandEvent $event = null */) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing @param
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@nicolas-grekas I've considered several approaches. The main obstacle I came across was having access to the I also thought about creating a new implementation of |
b144bb7
to
26f1f11
Compare
I wonder if not-instantiating the dump-collector is really a concern? Would it make things simpler if not? Otherwise, let's add some explanation about the argument in an |
@nicolas-grekas It might not be a real concern, but it doesn't simplify things either. I could always inject the
Regarding the changelog/upgrade part, should I retarget 7.4 and mark it as a feature? |
26f1f11
to
d94360f
Compare
Yes, let's target 7.4. |
d94360f
to
292adba
Compare
292adba
to
c4f8091
Compare
@nicolas-grekas Done. Thanks for the feedback. |
I thought the logic was that if the dump had somewhere to be displayed on it wouldn’t appear in the profiler: that matched Twig’s |
@MatTheCat With this PR, the The Twig |
Currently, when profiling a console command, calls to
dump()
aren't collected.With this PR, they'll be collected when profiling is enabled, or output directly when it's not.
Not entirely sure whether this should be considered a bug or simply a missing feature.