mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-28926 Add time spent on query optimizer to JSON ANALYZE (#2193)
* Add query optimizer timer to ANALYZE FORMAT=JSON * Adapt tests and results * Change logic to always close the writer after printing query blocks
This commit is contained in:
committed by
Sergei Petrunia
parent
f45f60636f
commit
ad7631bdce
@ -512,6 +512,10 @@ public:
|
||||
|
||||
Explain_update *get_upd_del_plan() { return upd_del_plan; }
|
||||
private:
|
||||
bool print_query_blocks_json(Json_writer *writer, const bool is_analyze, const bool is_show_cmd);
|
||||
void print_query_optimization_json(Json_writer *writer);
|
||||
void send_explain_json_to_output(Json_writer *writer, select_result_sink *output);
|
||||
|
||||
/* Explain_delete inherits from Explain_update */
|
||||
Explain_update *upd_del_plan;
|
||||
|
||||
@ -533,6 +537,8 @@ private:
|
||||
#ifndef DBUG_OFF
|
||||
bool can_print_json= false;
|
||||
#endif
|
||||
|
||||
Exec_time_tracker optimization_time_tracker;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user