Details
-
Type: New Feature
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Duplicate
-
Affects Version/s: 4.5
-
Fix Version/s: None
-
Component/s: Core CiviCRM
-
Labels:
-
Documentation Required?:None
-
Funding Source:Needs Funding
Description
Time all database calls. When in debug mode, provide a) a log of queries and the time to execute each, and b) a summary of db calls and total wall time spent querying for each process run.
This is slightly different than the db server's query logging, because it includes network round trips.
Don't get too crazy I suppose, cos in Doctrine this comes for free: Doctrine\DBAL\Logging\EchoSQLLogger.