1
votes

How can I profile Doctrine MongoDB ODM?

I would like to see all queries against database and the time of execution. Is there any way to configure a profiler? I would like to build a plugin that I would use it in ZFDebug toolbar.

2

2 Answers

0
votes

The MongoDBODMModule for ZF2 may have some classes you could re-use to handle this problem in ZF1. If you're already using ZF2, then it is just a matter of installing the module and ZendDeveloperTools to have the toolbar.