Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[HttpKernel] Collect data from every event dispatcher #49151

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

Merged
merged 1 commit into from
Apr 19, 2023

Conversation

MatTheCat
Copy link
Contributor

@MatTheCat MatTheCat commented Jan 30, 2023

Q A
Branch? 6.3
Bug fix? no
New feature? yes
Deprecations? no
Tickets N/A
License MIT
Doc PR N/A

Follow-up of #49021: instead of only passing the main event dispatcher to the EventDataCollector, we pass them all (thanks to the event_dispatcher.dispatcher tag).


(The heading is now “Dispatched Events”.)

Check “Hide whitespace” when reviewing.

@stof
Copy link
Member

stof commented Jan 30, 2023

We should not mix the listeners of various event dispatchers. That would make debugging much harder (as listeners from different dispatchers are totally separate lists).

If we can profile multiple dispatchers, the webprofiler panel must display them separately (see how the mailer panel handles a project with multiple mailers configured for instance).

@MatTheCat
Copy link
Contributor Author

@stof is that what you meant?

@stof
Copy link
Member

stof commented Jan 30, 2023

Yeah, it should look like that (and it means you won't ever mix the listeners from multiple TraceableEventDispatcher together and so you won't re-sort anything in the collector)

@MatTheCat MatTheCat force-pushed the profiler-event-dispatchers branch 2 times, most recently from 792075f to 6af1697 Compare January 30, 2023 15:51
@MatTheCat
Copy link
Contributor Author

Indeed; PR updated thanks!

@MatTheCat MatTheCat force-pushed the profiler-event-dispatchers branch 7 times, most recently from aac6d83 to 9770a9c Compare January 31, 2023 11:37
@MatTheCat MatTheCat force-pushed the profiler-event-dispatchers branch 3 times, most recently from 8ccd9af to 7e014a1 Compare February 13, 2023 08:29
@MatTheCat MatTheCat force-pushed the profiler-event-dispatchers branch from 7e014a1 to a6f8a00 Compare February 22, 2023 14:08
@MatTheCat MatTheCat force-pushed the profiler-event-dispatchers branch from a6f8a00 to b69b194 Compare March 3, 2023 11:33
@MatTheCat MatTheCat force-pushed the profiler-event-dispatchers branch 2 times, most recently from 30b7e78 to 0dd6d17 Compare March 17, 2023 11:16
@MatTheCat MatTheCat force-pushed the profiler-event-dispatchers branch 2 times, most recently from e658f9f to cfb35e8 Compare March 22, 2023 17:36
@MatTheCat
Copy link
Contributor Author

No deprecation anymore 👌

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I like this path.

@MatTheCat MatTheCat force-pushed the profiler-event-dispatchers branch 2 times, most recently from 43164f5 to 6396377 Compare April 2, 2023 15:51
@nicolas-grekas nicolas-grekas force-pushed the profiler-event-dispatchers branch from 6396377 to a204629 Compare April 19, 2023 14:29
@nicolas-grekas nicolas-grekas force-pushed the profiler-event-dispatchers branch from a204629 to 7a77b3a Compare April 19, 2023 14:34
@nicolas-grekas
Copy link
Member

Thank you @MatTheCat.

@nicolas-grekas nicolas-grekas merged commit 474239a into symfony:6.3 Apr 19, 2023
@MatTheCat MatTheCat deleted the profiler-event-dispatchers branch April 20, 2023 17:44
@MatTheCat
Copy link
Contributor Author

MatTheCat commented Apr 20, 2023

Thank you for finishing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants