Hanmant
Hanmant

Reputation: 4678

How to use BjyProfiler in ZF2?

In my ZF2 application, I want to profile my database queries to browser console. I came across BjyProfiler to do so. I did all configuration as documented here: "BjyProfiler at github". Everything is fine, but still I am not able to profile the database queries to browser console. Unfortunately I found no any document which would explains uses of BjyProfiler. Any help is really appreciated.

Upvotes: 1

Views: 2740

Answers (1)

Adam Lundrigan
Adam Lundrigan

Reputation: 598

BjyProfiler does not provide mechanisms for transmitting or storing query profile data, as this is outside the scope of the current module (as of 2012/10/23, at least). If you wish to store (ie: to database or file) or transmit (ie: to browser console such as Chrome Developer Tools or FireBug) you will need to implement this yourself.

The ZendDeveloperTools module has integration with BjyProfiler, but is currently limited to counting and aggregate timing of queries. The ZF2 Doctrine ORM module (DoctrineORMModule) provides per-query profiling data to ZendDeveloperTools, and this is something that should be replicated for those using Zend\Db instead of Doctrine.

Upvotes: 2

Related Questions