Reputation: 6752
Is there any class / method in Doctrine 2.1 that counts amount of queries done by particular entity manager (or sth else?)?
Upvotes: 0
Views: 159
Reputation: 2892
I don't think so. That would require some kind of persistence to store the number of times the queries are executed. You could always enable the log (disabled by default on production), use a custom logger like Monolog and parse the logs afterwards, or use a tool like NewRelic that gives you real-time and historical data of things like database queries (among a lot of other useful features).
Upvotes: 1