diff options
| author | Luis Eduardo Oliveira Lizardo <108760288+mariadb-LuisLizardo@users.noreply.github.com> | 2022-07-18 17:48:01 +0200 |
|---|---|---|
| committer | Sergei Petrunia <sergey@mariadb.com> | 2022-10-26 09:18:29 +0300 |
| commit | ad7631bdce1c25afa8de32d2062cb27bfaf539da (patch) | |
| tree | 191063a28c94b49f8a29c517a4f10f986e444f56 /sql/sql_explain.h | |
| parent | f45f60636f9b983e927ae81cf6386624e81af822 (diff) | |
| download | mariadb-git-ad7631bdce1c25afa8de32d2062cb27bfaf539da.tar.gz | |
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
Diffstat (limited to 'sql/sql_explain.h')
| -rw-r--r-- | sql/sql_explain.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/sql_explain.h b/sql/sql_explain.h index 919d51aef8b..38c5c3e6595 100644 --- a/sql/sql_explain.h +++ b/sql/sql_explain.h @@ -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; }; |
