-
-
Notifications
You must be signed in to change notification settings - Fork 455
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
Add loaded entities profiler section #1872
Conversation
1602c5e
to
b4dd3e4
Compare
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.
👍 from my side. Also tested it on one of my projects.
Should target 2.14.x though as its a new feature
One observation: I have an app with 2 different databases and 2 entity managers. Should it maybe be split into different tables per entity manager instead as we do for the "Entities Mapping" tab? |
it should indeed be per entity manager |
b4dd3e4
to
28f5b33
Compare
28f5b33
to
83e4a8b
Compare
Co-authored-by: Christophe Coevoet <stof@notk.org> Co-authored-by: David Maicher <mail@dmaicher.de>
527f0b1
to
018423b
Compare
Should I also add a little text explaining that this only shows the amount of managed entities at the end of the program when the collector runs? |
No need I would say, that's how collector stats are usually collected. But I would welcome if there was as an assertion for this in ProfilerTest, that's our integration test for profiler. |
c384477
to
9b6a396
Compare
9b6a396
to
123bfcd
Compare
The Feature
Showing a list of entity classes and the amount of entities that are managed:

The reasoning
Doctrine has a nice lazy loading feature of entities however I don't think many people realize that this can create a huge object graph in the entity manager. As flushing will go in and check all the entities for updates.