summaryrefslogtreecommitdiff
path: root/sql/mysqld.h
diff options
context:
space:
mode:
authorSergei Petrunia <psergey@askmonty.org>2015-03-07 22:47:28 +0300
committerSergei Petrunia <psergey@askmonty.org>2015-03-07 22:47:28 +0300
commit1626e0d3d48f56bd91239c4fcbc24595ee3a34e3 (patch)
tree6d92530c4d9c2f47030be63f9cfc851636107ae5 /sql/mysqld.h
parent2288b84df46501b89a70d7dc3b46020e0af9a95e (diff)
downloadmariadb-git-1626e0d3d48f56bd91239c4fcbc24595ee3a34e3.tar.gz
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.
Diffstat (limited to 'sql/mysqld.h')
-rw-r--r--sql/mysqld.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/mysqld.h b/sql/mysqld.h
index bfce719a280..b414e5168b2 100644
--- a/sql/mysqld.h
+++ b/sql/mysqld.h
@@ -26,6 +26,7 @@
#include "sql_cmd.h"
#include <my_rnd.h>
#include "my_pthread.h"
+#include "my_rdtsc.h"
class THD;
struct handlerton;
@@ -60,6 +61,8 @@ typedef Bitmap<((MAX_INDEXES+7)/8*8)> key_map; /* Used for finding keys */
#define OPT_SESSION SHOW_OPT_SESSION
#define OPT_GLOBAL SHOW_OPT_GLOBAL
+extern MY_TIMER_INFO sys_timer_info;
+
/*
Values for --slave-parallel-mode
Must match order in slave_parallel_mode_typelib in sys_vars.cc.