-
Notifications
You must be signed in to change notification settings - Fork 22
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
Question : Turn on Profiler #6
Comments
Good question, and something I had not considered. It can be done but it's ugly. You have to go through the Mapper to the Table to get the underlying connection. E.g.: $conn = $atlas->getMapper(Mapper::CLASS)->getTable()->getReadConnection();
$conn->setProfiler(...);
$conn->getProfiler()->setActive(true);
// ...
$conn->getProfiler()->setActive(false); That should probably be made easier. :-/ |
I found another way. But still not satisfied. This piece of code is written on
Update : It looks don't need to hack on this, it can be added via calling |
I'm taking this to mean that the issue can be closed; let me know if I'm wrong about that. :-) |
I wished if there is an easy way to turn on / off profiler. |
Hi Paul,
Thank you for your good work.
I was wondering is there a way to turn on the profiler of ExtendedPdo . From the AtlasContainer it looks the ExtendedPdo is instantiated there.
Is there a way to view the query executed some how other than via the ExtendedPdo profiler ?
Thank you.
The text was updated successfully, but these errors were encountered: