mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +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:
@ -1046,8 +1046,8 @@ typedef struct system_status_var
|
||||
ulonglong table_open_cache_misses;
|
||||
ulonglong table_open_cache_overflows;
|
||||
ulonglong send_metadata_skips;
|
||||
ulonglong cpu_time, busy_time, query_time;
|
||||
double last_query_cost;
|
||||
double cpu_time, busy_time;
|
||||
uint32 threads_running;
|
||||
/* Don't initialize */
|
||||
/* Memory used for thread local storage */
|
||||
|
Reference in New Issue
Block a user