Is there some way of checking which queries in an application are slow and could be optimized using some sort of tool that would, as unobtrusively as possible, allow you to click through a web application and track the performance of the queries within it?
I’m using PHP PDO with prepared statements to run the queries and the application is currently running on a test server on Ubuntu 9.10.
Try firePhp as the DB profiler tool http://www.firephp.org/