@@ -897,26 +897,26 @@ When the user found is NULL, it is assumed to be a "background" thread.
897
897
898
898
```SQL
899
899
mysql> select * from user_summary_by_stages;
900
- +------+--------------------------------+-------+-----------+ -----------+
901
- | user | event_name | total | wait_sum | wait_avg |
902
- +------+--------------------------------+-------+-----------+ -----------+
903
- | root | stage/sql/Opening tables | 889 | 1.97 ms | 2.22 us |
904
- | root | stage/sql/Creating sort index | 4 | 1.79 ms | 446.30 us |
905
- | root | stage/sql/init | 10 | 312.27 us | 31.23 us |
906
- | root | stage/sql/checking permissions | 10 | 300.62 us | 30.06 us |
907
- | root | stage/sql/freeing items | 5 | 85.89 us | 17.18 us |
908
- | root | stage/sql/statistics | 5 | 79.15 us | 15.83 us |
909
- | root | stage/sql/preparing | 5 | 69.12 us | 13.82 us |
910
- | root | stage/sql/optimizing | 5 | 53.11 us | 10.62 us |
911
- | root | stage/sql/Sending data | 5 | 44.66 us | 8.93 us |
912
- | root | stage/sql/closing tables | 5 | 37.54 us | 7.51 us |
913
- | root | stage/sql/System lock | 5 | 34.28 us | 6.86 us |
914
- | root | stage/sql/query end | 5 | 24.37 us | 4.87 us |
915
- | root | stage/sql/end | 5 | 8.60 us | 1.72 us |
916
- | root | stage/sql/Sorting result | 5 | 8.33 us | 1.67 us |
917
- | root | stage/sql/executing | 5 | 5.37 us | 1.07 us |
918
- | root | stage/sql/cleaning up | 5 | 4.60 us | 919.00 ns |
919
- +------+--------------------------------+-------+-----------+ -----------+
900
+ +------+--------------------------------+-------+---------------+-- -----------+
901
+ | user | event_name | total | total_latency | avg_latency |
902
+ +------+--------------------------------+-------+---------------+-- -----------+
903
+ | root | stage/sql/Opening tables | 889 | 1.97 ms | 2.22 us |
904
+ | root | stage/sql/Creating sort index | 4 | 1.79 ms | 446.30 us |
905
+ | root | stage/sql/init | 10 | 312.27 us | 31.23 us |
906
+ | root | stage/sql/checking permissions | 10 | 300.62 us | 30.06 us |
907
+ | root | stage/sql/freeing items | 5 | 85.89 us | 17.18 us |
908
+ | root | stage/sql/statistics | 5 | 79.15 us | 15.83 us |
909
+ | root | stage/sql/preparing | 5 | 69.12 us | 13.82 us |
910
+ | root | stage/sql/optimizing | 5 | 53.11 us | 10.62 us |
911
+ | root | stage/sql/Sending data | 5 | 44.66 us | 8.93 us |
912
+ | root | stage/sql/closing tables | 5 | 37.54 us | 7.51 us |
913
+ | root | stage/sql/System lock | 5 | 34.28 us | 6.86 us |
914
+ | root | stage/sql/query end | 5 | 24.37 us | 4.87 us |
915
+ | root | stage/sql/end | 5 | 8.60 us | 1.72 us |
916
+ | root | stage/sql/Sorting result | 5 | 8.33 us | 1.67 us |
917
+ | root | stage/sql/executing | 5 | 5.37 us | 1.07 us |
918
+ | root | stage/sql/cleaning up | 5 | 4.60 us | 919.00 ns |
919
+ +------+--------------------------------+-------+---------------+-- -----------+
920
920
```
921
921
922
922
#### user_summary_by_statement_latency / x$user_summary_by_statement_latency
@@ -979,6 +979,8 @@ mysql> select * from user_summary_by_statement_type;
979
979
980
980
Summarizes statement activity, file IO and connections by host.
981
981
982
+ When the host found is NULL, it is assumed to be a "background" thread.
983
+
982
984
##### Example
983
985
984
986
```SQL
@@ -997,6 +999,8 @@ Summarizes statement activity, file IO and connections by host.
997
999
998
1000
Summarizes file IO totals per host.
999
1001
1002
+ When the host found is NULL, it is assumed to be a "background" thread.
1003
+
1000
1004
##### Example
1001
1005
1002
1006
```SQL
@@ -1015,31 +1019,33 @@ Summarizes file IO totals per host.
1015
1019
1016
1020
Summarizes file IO by event type per host.
1017
1021
1022
+ When the host found is NULL, it is assumed to be a "background" thread.
1023
+
1018
1024
##### Example
1019
1025
1020
1026
```SQL
1021
1027
mysql> select * from host_summary_by_file_io_type;
1022
- +------------+--------------------------------------+-------+-----------+-------------+
1023
- | host | event_name | total | latency | max_latency |
1024
- +------------+--------------------------------------+-------+-----------+-------------+
1025
- | hal1 | wait/io/file/sql/FRM | 871 | 168.15 ms | 18.48 ms |
1026
- | hal1 | wait/io/file/innodb/innodb_data_file | 173 | 129.56 ms | 34.09 ms |
1027
- | hal1 | wait/io/file/innodb/innodb_log_file | 20 | 77.53 ms | 60.66 ms |
1028
- | hal1 | wait/io/file/myisam/dfile | 40 | 6.54 ms | 4.58 ms |
1029
- | hal1 | wait/io/file/mysys/charset | 3 | 4.79 ms | 4.71 ms |
1030
- | hal1 | wait/io/file/myisam/kfile | 67 | 4.38 ms | 300.04 us |
1031
- | hal1 | wait/io/file/sql/ERRMSG | 5 | 2.72 ms | 1.69 ms |
1032
- | hal1 | wait/io/file/sql/pid | 3 | 266.30 us | 185.47 us |
1033
- | hal1 | wait/io/file/sql/casetest | 5 | 246.81 us | 150.19 us |
1034
- | hal1 | wait/io/file/sql/global_ddl_log | 2 | 21.24 us | 18.59 us |
1035
- | hal2 | wait/io/file/sql/file_parser | 1422 | 4.80 s | 135.14 ms |
1036
- | hal2 | wait/io/file/sql/FRM | 865 | 85.82 ms | 9.81 ms |
1037
- | hal2 | wait/io/file/myisam/kfile | 1073 | 37.14 ms | 15.79 ms |
1038
- | hal2 | wait/io/file/myisam/dfile | 2991 | 25.53 ms | 5.25 ms |
1039
- | hal2 | wait/io/file/sql/dbopt | 20 | 1.07 ms | 153.07 us |
1040
- | hal2 | wait/io/file/sql/misc | 4 | 59.71 us | 33.75 us |
1041
- | hal2 | wait/io/file/archive/data | 1 | 13.91 us | 13.91 us |
1042
- +------------+--------------------------------------+-------+-----------+-------------+
1028
+ +------------+--------------------------------------+-------+--------------- +-------------+
1029
+ | host | event_name | total | total_latency | max_latency |
1030
+ +------------+--------------------------------------+-------+--------------- +-------------+
1031
+ | hal1 | wait/io/file/sql/FRM | 871 | 168.15 ms | 18.48 ms |
1032
+ | hal1 | wait/io/file/innodb/innodb_data_file | 173 | 129.56 ms | 34.09 ms |
1033
+ | hal1 | wait/io/file/innodb/innodb_log_file | 20 | 77.53 ms | 60.66 ms |
1034
+ | hal1 | wait/io/file/myisam/dfile | 40 | 6.54 ms | 4.58 ms |
1035
+ | hal1 | wait/io/file/mysys/charset | 3 | 4.79 ms | 4.71 ms |
1036
+ | hal1 | wait/io/file/myisam/kfile | 67 | 4.38 ms | 300.04 us |
1037
+ | hal1 | wait/io/file/sql/ERRMSG | 5 | 2.72 ms | 1.69 ms |
1038
+ | hal1 | wait/io/file/sql/pid | 3 | 266.30 us | 185.47 us |
1039
+ | hal1 | wait/io/file/sql/casetest | 5 | 246.81 us | 150.19 us |
1040
+ | hal1 | wait/io/file/sql/global_ddl_log | 2 | 21.24 us | 18.59 us |
1041
+ | hal2 | wait/io/file/sql/file_parser | 1422 | 4.80 s | 135.14 ms |
1042
+ | hal2 | wait/io/file/sql/FRM | 865 | 85.82 ms | 9.81 ms |
1043
+ | hal2 | wait/io/file/myisam/kfile | 1073 | 37.14 ms | 15.79 ms |
1044
+ | hal2 | wait/io/file/myisam/dfile | 2991 | 25.53 ms | 5.25 ms |
1045
+ | hal2 | wait/io/file/sql/dbopt | 20 | 1.07 ms | 153.07 us |
1046
+ | hal2 | wait/io/file/sql/misc | 4 | 59.71 us | 33.75 us |
1047
+ | hal2 | wait/io/file/archive/data | 1 | 13.91 us | 13.91 us |
1048
+ +------------+--------------------------------------+-------+--------------- +-------------+
1043
1049
```
1044
1050
1045
1051
#### host_summary_by_stages / x$host_summary_by_stages
@@ -1048,30 +1054,32 @@ Summarizes file IO by event type per host.
1048
1054
1049
1055
Summarizes stages by host, ordered by host and total latency per stage.
1050
1056
1057
+ When the host found is NULL, it is assumed to be a "background" thread.
1058
+
1051
1059
##### Example
1052
1060
1053
1061
```SQL
1054
1062
mysql> select * from host_summary_by_stages;
1055
- +------+--------------------------------+-------+-----------+ -----------+
1056
- | host | event_name | total | wait_sum | wait_avg |
1057
- +------+--------------------------------+-------+-----------+ -----------+
1058
- | hal | stage/sql/Opening tables | 889 | 1.97 ms | 2.22 us |
1059
- | hal | stage/sql/Creating sort index | 4 | 1.79 ms | 446.30 us |
1060
- | hal | stage/sql/init | 10 | 312.27 us | 31.23 us |
1061
- | hal | stage/sql/checking permissions | 10 | 300.62 us | 30.06 us |
1062
- | hal | stage/sql/freeing items | 5 | 85.89 us | 17.18 us |
1063
- | hal | stage/sql/statistics | 5 | 79.15 us | 15.83 us |
1064
- | hal | stage/sql/preparing | 5 | 69.12 us | 13.82 us |
1065
- | hal | stage/sql/optimizing | 5 | 53.11 us | 10.62 us |
1066
- | hal | stage/sql/Sending data | 5 | 44.66 us | 8.93 us |
1067
- | hal | stage/sql/closing tables | 5 | 37.54 us | 7.51 us |
1068
- | hal | stage/sql/System lock | 5 | 34.28 us | 6.86 us |
1069
- | hal | stage/sql/query end | 5 | 24.37 us | 4.87 us |
1070
- | hal | stage/sql/end | 5 | 8.60 us | 1.72 us |
1071
- | hal | stage/sql/Sorting result | 5 | 8.33 us | 1.67 us |
1072
- | hal | stage/sql/executing | 5 | 5.37 us | 1.07 us |
1073
- | hal | stage/sql/cleaning up | 5 | 4.60 us | 919.00 ns |
1074
- +------+--------------------------------+-------+-----------+ -----------+
1063
+ +------+--------------------------------+-------+---------------+-- -----------+
1064
+ | host | event_name | total | total_latency | avg_latency |
1065
+ +------+--------------------------------+-------+---------------+-- -----------+
1066
+ | hal | stage/sql/Opening tables | 889 | 1.97 ms | 2.22 us |
1067
+ | hal | stage/sql/Creating sort index | 4 | 1.79 ms | 446.30 us |
1068
+ | hal | stage/sql/init | 10 | 312.27 us | 31.23 us |
1069
+ | hal | stage/sql/checking permissions | 10 | 300.62 us | 30.06 us |
1070
+ | hal | stage/sql/freeing items | 5 | 85.89 us | 17.18 us |
1071
+ | hal | stage/sql/statistics | 5 | 79.15 us | 15.83 us |
1072
+ | hal | stage/sql/preparing | 5 | 69.12 us | 13.82 us |
1073
+ | hal | stage/sql/optimizing | 5 | 53.11 us | 10.62 us |
1074
+ | hal | stage/sql/Sending data | 5 | 44.66 us | 8.93 us |
1075
+ | hal | stage/sql/closing tables | 5 | 37.54 us | 7.51 us |
1076
+ | hal | stage/sql/System lock | 5 | 34.28 us | 6.86 us |
1077
+ | hal | stage/sql/query end | 5 | 24.37 us | 4.87 us |
1078
+ | hal | stage/sql/end | 5 | 8.60 us | 1.72 us |
1079
+ | hal | stage/sql/Sorting result | 5 | 8.33 us | 1.67 us |
1080
+ | hal | stage/sql/executing | 5 | 5.37 us | 1.07 us |
1081
+ | hal | stage/sql/cleaning up | 5 | 4.60 us | 919.00 ns |
1082
+ +------+--------------------------------+-------+---------------+-- -----------+
1075
1083
```
1076
1084
1077
1085
#### host_summary_by_statement_latency / x$host_summary_by_statement_latency
@@ -1080,6 +1088,8 @@ Summarizes stages by host, ordered by host and total latency per stage.
1080
1088
1081
1089
Summarizes overall statement statistics by host.
1082
1090
1091
+ When the host found is NULL, it is assumed to be a "background" thread.
1092
+
1083
1093
##### Example
1084
1094
1085
1095
```SQL
@@ -1097,6 +1107,8 @@ mysql> select * from host_summary_by_statement_latency;
1097
1107
1098
1108
Summarizes the types of statements executed by each host.
1099
1109
1110
+ When the host found is NULL, it is assumed to be a "background" thread.
1111
+
1100
1112
##### Example
1101
1113
1102
1114
```SQL
@@ -1111,10 +1123,8 @@ Summarizes the types of statements executed by each host.
1111
1123
| hal | create_table | 19 | 3.04 s | 431.71 ms | 0 ps | 0 | 0 | 0 | 0 |
1112
1124
...
1113
1125
+------+----------------------+--------+---------------+-------------+--------------+-----------+---------------+---------------+------------+
1114
-
1115
1126
```
1116
1127
1117
-
1118
1128
#### wait_classes_global_by_avg_latency / x$wait_classes_global_by_avg_latency
1119
1129
1120
1130
##### Description
0 commit comments