title: Joomla SQL Query Debug Method
body: <p>I'm planning to debug Joomla site by entering each query and it's query execution time to a database table. I have more than 10 models which have different queries. I'm pretty sure that all the queries go through a single place/class before executing but I have no idea where/what the place/class is.</p>
  
  <p>My issue is, Is there a central place I can edit to log the database query and the execution time of a SQL query? I mean like edit a core file just to log every SQL query &amp; it's execution time.</p>
  
  <p>How can I get it done?</p>