PDF (A4) - 41.3Mb
Man Pages (TGZ) - 262.8Kb
Man Pages (Zip) - 368.8Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb
ThePROFILING table provides statement profiling information. Its contents correspond to the information produced by theSHOW PROFILE andSHOW PROFILES statements (seeSection 15.7.7.33, “SHOW PROFILE Statement”). The table is empty unless theprofiling session variable is set to 1.
This table is deprecated; expect it to be removed in a future MySQL release. Use thePerformance Schema instead; seeSection 29.19.1, “Query Profiling Using Performance Schema”.
ThePROFILING table has these columns:
QUERY_IDA numeric statement identifier.
SEQA sequence number indicating the display order for rows with the same
QUERY_IDvalue.STATEThe profiling state to which the row measurements apply.
DURATIONHow long statement execution remained in the given state, in seconds.
CPU_USER,CPU_SYSTEMUser and system CPU use, in seconds.
CONTEXT_VOLUNTARY,CONTEXT_INVOLUNTARYHow many voluntary and involuntary context switches occurred.
BLOCK_OPS_IN,BLOCK_OPS_OUTThe number of block input and output operations.
MESSAGES_SENT,MESSAGES_RECEIVEDThe number of communication messages sent and received.
PAGE_FAULTS_MAJOR,PAGE_FAULTS_MINORThe number of major and minor page faults.
SWAPSHow many swaps occurred.
SOURCE_FUNCTION,SOURCE_FILE, andSOURCE_LINEInformation indicating where in the source code the profiled state executes.
Notes
PROFILINGis a nonstandardINFORMATION_SCHEMAtable.
Profiling information is also available from theSHOW PROFILE andSHOW PROFILES statements. SeeSection 15.7.7.33, “SHOW PROFILE Statement”. For example, the following queries are equivalent:
SHOW PROFILE FOR QUERY 2;SELECT STATE, FORMAT(DURATION, 6) AS DURATIONFROM INFORMATION_SCHEMA.PROFILINGWHERE QUERY_ID = 2 ORDER BY SEQ;PDF (A4) - 41.3Mb
Man Pages (TGZ) - 262.8Kb
Man Pages (Zip) - 368.8Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb