Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit 4834971

Browse files
committed
Update README for all recent changes
1 parent d831014 commit 4834971

File tree

1 file changed

+73
-63
lines changed

1 file changed

+73
-63
lines changed

README.md

Lines changed: 73 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -897,26 +897,26 @@ When the user found is NULL, it is assumed to be a "background" thread.
897897
898898
```SQL
899899
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+
+------+--------------------------------+-------+---------------+-------------+
920920
```
921921
922922
#### user_summary_by_statement_latency / x$user_summary_by_statement_latency
@@ -979,6 +979,8 @@ mysql> select * from user_summary_by_statement_type;
979979
980980
Summarizes statement activity, file IO and connections by host.
981981
982+
When the host found is NULL, it is assumed to be a "background" thread.
983+
982984
##### Example
983985
984986
```SQL
@@ -997,6 +999,8 @@ Summarizes statement activity, file IO and connections by host.
997999
9981000
Summarizes file IO totals per host.
9991001
1002+
When the host found is NULL, it is assumed to be a "background" thread.
1003+
10001004
##### Example
10011005
10021006
```SQL
@@ -1015,31 +1019,33 @@ Summarizes file IO totals per host.
10151019
10161020
Summarizes file IO by event type per host.
10171021
1022+
When the host found is NULL, it is assumed to be a "background" thread.
1023+
10181024
##### Example
10191025
10201026
```SQL
10211027
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+
+------------+--------------------------------------+-------+---------------+-------------+
10431049
```
10441050
10451051
#### host_summary_by_stages / x$host_summary_by_stages
@@ -1048,30 +1054,32 @@ Summarizes file IO by event type per host.
10481054
10491055
Summarizes stages by host, ordered by host and total latency per stage.
10501056
1057+
When the host found is NULL, it is assumed to be a "background" thread.
1058+
10511059
##### Example
10521060
10531061
```SQL
10541062
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+
+------+--------------------------------+-------+---------------+-------------+
10751083
```
10761084
10771085
#### 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.
10801088
10811089
Summarizes overall statement statistics by host.
10821090
1091+
When the host found is NULL, it is assumed to be a "background" thread.
1092+
10831093
##### Example
10841094
10851095
```SQL
@@ -1097,6 +1107,8 @@ mysql> select * from host_summary_by_statement_latency;
10971107
10981108
Summarizes the types of statements executed by each host.
10991109
1110+
When the host found is NULL, it is assumed to be a "background" thread.
1111+
11001112
##### Example
11011113
11021114
```SQL
@@ -1111,10 +1123,8 @@ Summarizes the types of statements executed by each host.
11111123
| hal | create_table | 19 | 3.04 s | 431.71 ms | 0 ps | 0 | 0 | 0 | 0 |
11121124
...
11131125
+------+----------------------+--------+---------------+-------------+--------------+-----------+---------------+---------------+------------+
1114-
11151126
```
11161127
1117-
11181128
#### wait_classes_global_by_avg_latency / x$wait_classes_global_by_avg_latency
11191129
11201130
##### Description

0 commit comments

Comments
 (0)