mozilla/dxr — pull request #49 by abbeyj (2012-12-20 21:33:47+00:00)
Title: Add profiling ability for SQL queries.

Appending "&explain=true" to the end of the URL of any query will run
the query as normal but not return the results to the browser.
Instead it will report the results of "EXPLAIN QUERY PLAN" for every
SQL statement that is run along with the time that each statement took.

This can be useful in diagnosing slow queries and figuring out how to
speed them up.