The SHOW PROFILES statement, together with SHOW PROFILE, displays profiling information that indicates resource usage for statements executed during the course of the current session. For more information, see Section, “SHOW PROFILE Syntax”.

Download this Manual
User Comments
  Posted by Mark Callaghan on November 6, 2008
The disclaimer about getrusage() should be more explicit. You cannot get per-thread resource stats from getrusage() on Linux today. PeterG provides some details on this -- http://blogs.mysql.com/peterg/2008/11/06/show-profile-information_schemaprofiling/
  Posted by Jiju Thomas Mathew on April 10, 2009
Open PHP MyProfiler (http://www.php-trivandrum.org/open-php-myprofiler) is just a trial to run query profiling on a php-mysql application, without changing the architecture too much. Thanks to the built in profiler
  Posted by Morgan Tocker on December 10, 2013
I have written an example replacement for SHOW PROFILES using performance_schema here:

This may be helpful for users not wanting to rely on deprecated features (SHOW PROFILES is deprecated from 5.6, and may be removed in a future version).
Sign Up Login You must be logged in to post a comment.