Using the New MySQL Query Profiler
To enable Profiling on MySQL:
mysql> set profiling=1;
Query OK, 0 rows affected (0.00 sec)
To view SQL Profiles:
mysql> show profiles;
For additional instructions, go to: http://dev.mysql.com/tech-resources/articles/using-new-query-profiler.html