I'm looking for a way to find the cumulative time taken by database
queries. In other words, I'm trying to find out which queries have the
biggest overall impact on application performance.
I need an approach that works with ActiveRecord 2.1.2 and MySQL 5.1. I
have no qualms hacking into ARec myself, but I'd prefer an existing
solution if one exists.