diff options
author | Sergei Petrunia <psergey@askmonty.org> | 2015-03-24 16:17:41 +0300 |
---|---|---|
committer | Sergei Petrunia <psergey@askmonty.org> | 2015-03-24 16:17:41 +0300 |
commit | 77e16ce7d65793451c640014b342d23a28fc1060 (patch) | |
tree | 4a488e2e8ab1cba7d60293681cee7accf4cc2469 /sql/handler.h | |
parent | b273e4a5c0e2342cf407d451466df164adfb36c6 (diff) | |
download | mariadb-git-77e16ce7d65793451c640014b342d23a28fc1060.tar.gz |
MDEV-7648: Extra data in ANALYZE FORMAT=JSON $stmt
Switch from relying on PERFORMANCE_SCHEMA to using our
own hooks for counting the time spent reading rows from
tables.
Diffstat (limited to 'sql/handler.h')
-rw-r--r-- | sql/handler.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/handler.h b/sql/handler.h index 5ef92088df5..b7b35bc2b06 100644 --- a/sql/handler.h +++ b/sql/handler.h @@ -1571,6 +1571,7 @@ typedef struct { #define UNDEF_NODEGROUP 65535 class Item; +class Exec_time_tracker; struct st_table_log_memory_entry; class partition_info; @@ -2594,6 +2595,9 @@ public: ulonglong rows_changed; /* One bigger than needed to avoid to test if key == MAX_KEY */ ulonglong index_rows_read[MAX_KEY+1]; + + /* ANALYZE time tracker, if present */ + Exec_time_tracker *tracker; Item *pushed_idx_cond; uint pushed_idx_cond_keyno; /* The index which the above condition is for */ @@ -2648,6 +2652,7 @@ public: ft_handler(0), inited(NONE), implicit_emptied(0), pushed_cond(0), next_insert_id(0), insert_id_for_cur_row(0), + tracker(NULL), pushed_idx_cond(NULL), pushed_idx_cond_keyno(MAX_KEY), auto_inc_intervals_count(0), |