diff options
| author | Sergei Petrunia <sergey@mariadb.com> | 2023-04-14 17:40:41 +0300 |
|---|---|---|
| committer | Sergei Petrunia <sergey@mariadb.com> | 2023-04-17 16:50:01 +0300 |
| commit | c7fe8e51de4e67f8515b3cf8b6bcd1c5bf1d184b (patch) | |
| tree | 73c2939dfd955ffedd4b1089d19da821f7da472d /sql/sql_explain.h | |
| parent | 8e55d7ea4a2f94ae3f38fdd8785778612d4b1203 (diff) | |
| parent | 656c2e18b1e9ea5d0314745f3988d126eedbc22a (diff) | |
| download | mariadb-git-c7fe8e51de4e67f8515b3cf8b6bcd1c5bf1d184b.tar.gz | |
Merge 10.11 into 11.0
Diffstat (limited to 'sql/sql_explain.h')
| -rw-r--r-- | sql/sql_explain.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/sql/sql_explain.h b/sql/sql_explain.h index 03eb8821a34..2ab2775820b 100644 --- a/sql/sql_explain.h +++ b/sql/sql_explain.h @@ -495,7 +495,7 @@ public: bool is_analyze); /* Send tabular EXPLAIN to the client */ - int send_explain(THD *thd); + int send_explain(THD *thd, bool extended); /* Return tabular EXPLAIN output as a text string */ bool print_explain_str(THD *thd, String *out_str, bool is_analyze); @@ -882,9 +882,22 @@ public: Exec_time_tracker op_tracker; Gap_time_tracker extra_time_tracker; + /* When using join buffer: Track the reads from join buffer */ Table_access_tracker jbuf_tracker; + + /* When using join buffer: time spent unpacking rows from the join buffer */ Time_and_counter_tracker jbuf_unpack_tracker; - + + /* + When using join buffer: time spent after unpacking rows from the join + buffer. This will capture the time spent checking the Join Condition: + the condition that depends on this table and preceding tables. + */ + Gap_time_tracker jbuf_extra_time_tracker; + + /* When using join buffer: Track the number of incoming record combinations */ + Counter_tracker jbuf_loops_tracker; + Explain_rowid_filter *rowid_filter; int print_explain(select_result_sink *output, uint8 explain_flags, |
