Documentation Home
MySQL 5.6 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 31.1Mb
PDF (A4) - 31.1Mb
PDF (RPM) - 30.3Mb
EPUB - 7.7Mb
HTML Download (TGZ) - 7.5Mb
HTML Download (Zip) - 7.6Mb
HTML Download (RPM) - 6.5Mb
Eclipse Doc Plugin (TGZ) - 8.3Mb
Eclipse Doc Plugin (Zip) - 10.1Mb
Man Pages (TGZ) - 182.5Kb
Man Pages (Zip) - 293.8Kb
Info (Gzip) - 2.9Mb
Info (Zip) - 2.9Mb
Excerpts from this Manual SHOW PROFILES Syntax


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”.


These statements are deprecated as of MySQL 5.6.7 and will be removed in a future MySQL release. Use the Performance Schema instead; see Chapter 22, MySQL Performance Schema.

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 --
  Posted by Jiju Thomas Mathew on April 10, 2009
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.