mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-7648: Extra data in ANALYZE FORMAT=JSON $stmt
Show total execution time (r_total_time_ms) for various parts of the query: 1. time spent in SELECTs 2. time spent reading rows from storage engines #2 currently gets the data from P_S.
This commit is contained in:
@ -252,6 +252,7 @@ typedef struct st_join_table {
|
||||
enum explain_extra_tag info;
|
||||
|
||||
Table_access_tracker *tracker;
|
||||
|
||||
Table_access_tracker *jbuf_tracker;
|
||||
/*
|
||||
Bitmap of TAB_INFO_* bits that encodes special line for EXPLAIN 'Extra'
|
||||
@ -1260,6 +1261,8 @@ public:
|
||||
OPTIMIZATION_DONE=2};
|
||||
bool optimized; ///< flag to avoid double optimization in EXPLAIN
|
||||
bool initialized; ///< flag to avoid double init_execution calls
|
||||
|
||||
Exec_time_tracker *tracker;
|
||||
|
||||
enum { QEP_NOT_PRESENT_YET, QEP_AVAILABLE, QEP_DELETED} have_query_plan;
|
||||
|
||||
@ -1354,6 +1357,8 @@ public:
|
||||
no_rows_in_result_called= 0;
|
||||
positions= best_positions= 0;
|
||||
|
||||
tracker= NULL;
|
||||
|
||||
all_fields= fields_arg;
|
||||
if (&fields_list != &fields_arg) /* Avoid valgrind-warning */
|
||||
fields_list= fields_arg;
|
||||
|
Reference in New Issue
Block a user