mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-35720 Add query_time to statistics
Added Query_time (total time spent running queries) to status_variables. Other things: - Added SHOW_MICROSECOND_STATUS type that shows an ulonglong variable in microseconds converted to a double (in seconds). - Changed Busy_time and Cpu_time to use SHOW_MICROSECOND_STATUS, which simplified the code and avoids some double divisions for each query. Reviewed-by: Sergei Golubchik <serg@mariadb.org>
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
SHOW_LONG_NOFLUSH, SHOW_LEX_STRING, SHOW_ATOMIC_COUNTER_UINT32_T, \
|
||||
/* SHOW_*_STATUS must be at the end, SHOW_LONG_STATUS being first */ \
|
||||
SHOW_LONG_STATUS, SHOW_DOUBLE_STATUS, SHOW_LONGLONG_STATUS, \
|
||||
SHOW_UINT32_STATUS
|
||||
SHOW_UINT32_STATUS, SHOW_MICROSECOND_STATUS,
|
||||
#include "mariadb.h"
|
||||
#undef SHOW_always_last
|
||||
|
||||
|
Reference in New Issue
Block a user