| 
    MySQL 5.6.14 Source Code Document
    
   | 
 
#include "sql_priv.h"#include "unireg.h"#include "sql_profile.h"#include "my_sys.h"#include "sql_show.h"#include "sql_class.h"#include <algorithm>
Go to the source code of this file.
Macros | |
| #define | TIME_FLOAT_DIGITS 9 | 
| #define | TIME_I_S_DECIMAL_SIZE (TIME_FLOAT_DIGITS*100)+(TIME_FLOAT_DIGITS-3) | 
| #define | MAX_QUERY_LENGTH 300U | 
| #define | MAX_QUERY_HISTORY 101U | 
Functions | |
| int | fill_query_profile_statistics_info (THD *thd, TABLE_LIST *tables, Item *cond) | 
| int | make_profile_table_for_show (THD *thd, ST_SCHEMA_TABLE *schema_table) | 
Variables | |
| ST_FIELD_INFO | query_profile_statistics_info [] | 
Implement query profiling as as list of metaphorical fences, with one fence per query, and each fencepost a change of thd->proc_info state (with a snapshot of system statistics). When asked, we can then iterate over the fenceposts and calculate the distance between them, to inform the user what happened during a particular query or thd->proc_info state.
User variables that inform profiling behavior:
Definition in file sql_profile.cc.
| #define TIME_I_S_DECIMAL_SIZE (TIME_FLOAT_DIGITS*100)+(TIME_FLOAT_DIGITS-3) | 
two vals encoded: (dec*100)+len
Definition at line 46 of file sql_profile.cc.
| int fill_query_profile_statistics_info | ( | THD * | thd, | 
| TABLE_LIST * | tables, | ||
| Item * | cond | ||
| ) | 
Connects Information_Schema and Profiling.
Definition at line 54 of file sql_profile.cc.
| ST_FIELD_INFO query_profile_statistics_info[] | 
Definition at line 65 of file sql_profile.cc.