26.4.3 sys 模式视图
-
26 .4.3.2 host_summary_by_file_io 和 x $ host_summary_by_file_io 视图
-
26 .4.3.3 host_summary_by_file_io_type 和 x $ host_summary_by_file_io_type 视图
-
26 .4.3.4 host_summary_by_stages 和 x $ host_summary_by_stages 视图
-
26 .4.3.5 host_summary_by_statement_latency 和 x $ host_summary_by_statement_latency 视图
-
26 .4.3.6 host_summary_by_statement_type 和 x $ host_summary_by_statement_type 视图
-
26 .4.3.7 innodb_buffer_stats_by_schema 和 x $ innodb_buffer_stats_by_schema 视图
-
26 .4.3.8 innodb_buffer_stats_by_table 和 x $ innodb_buffer_stats_by_table 视图
-
26 .4.3.10 io_by_thread_by_latency 和 x $ io_by_thread_by_latency 视图
-
26 .4.3.11 io_global_by_file_by_bytes 和 x $ io_global_by_file_by_bytes 视图
-
26 .4.3.12 io_global_by_file_by_latency 和 x $ io_global_by_file_by_latency 视图
-
26 .4.3.13 io_global_by_wait_by_bytes 和 x $ io_global_by_wait_by_bytes 视图
-
26 .4.3.14 io_global_by_wait_by_latency 和 x $ io_global_by_wait_by_latency 视图
-
26 .4.3.16 memory_by_host_by_current_bytes 和 x $ memory_by_host_by_current_bytes 视图
-
26 .4.3.17 memory_by_thread_by_current_bytes 和 x $ memory_by_thread_by_current_bytes 视图
-
26 .4.3.18 memory_by_user_by_current_bytes 和 x $ memory_by_user_by_current_bytes 视图
-
26 .4.3.19 memory_global_by_current_bytes 和 x $ memory_global_by_current_bytes 视图
-
26 .4.3.25 schema_index_statistics 和 x $ schema_index_statistics 视图
-
26 .4.3.27 schema_redundant_indexes 和 x $ schema_flattened_keys 视图
-
26 .4.3.28 schema_table_lock_waits 和 x $ schema_table_lock_waits 视图
-
26 .4.3.29 schema_table_statistics 和 x $ schema_table_statistics 视图
-
26 .4.3.30 schema_table_statistics_with_buffer 和 x $ schema_table_statistics_with_buffer 视图
-
26 .4.3.31 schema_tables_with_full_table_scans 和 x $ schema_tables_with_full_table_scans 视图
-
26 .4.3.36 statement_with_errors_or_warnings 和 x $ statements_with_errors_or_warnings 视图
-
26 .4.3.37 statement_with_full_table_scans 和 x $ statements_with_full_table_scans 视图
-
26 .4.3.39 statement_with_sorting 和 x $ statements_with_sorting 视图
-
26 .4.3.40 statement_with_temp_tables 和 x $ statements_with_temp_tables 视图
-
26 .4.3.42 user_summary_by_file_io 和 x $ user_summary_by_file_io 视图
-
26 .4.3.43 user_summary_by_file_io_type 和 x $ user_summary_by_file_io_type 视图
-
26 .4.3.44 user_summary_by_stages 和 x $ user_summary_by_stages 视图
-
26 .4.3.45 user_summary_by_statement_latency 和 x $ user_summary_by_statement_latency 视图
-
26 .4.3.46 user_summary_by_statement_type 和 x $ user_summary_by_statement_type 视图
-
26 .4.3.48 wait_classes_global_by_avg_latency 和 x $ wait_classes_global_by_avg_latency 视图
-
26 .4.3.49 wait_classes_global_by_latency 和 x $ wait_classes_global_by_latency 视图
-
26 .4.3.50 waits_by_host_by_latency 和 x $ waits_by_host_by_latency 视图
-
26 .4.3.51 waits_by_user_by_latency 和 x $ waits_by_user_by_latency 视图
-
26 .4.3.52 waits_global_by_latency 和 x $ waits_global_by_latency 视图
以下各节描述sys模式视图。
sys
模式包含许多视图,这些视图以各种方式总结了性能模式 table。这些视图中的大多数成对出现,因此该对中的一个成员与另一个成员具有相同的名称,外加x$
前缀。例如,host_summary_by_file_io视图汇总了按主机分组的文件 I/O,并显示了从皮秒转换为更易读的值(带有单位)的延迟;
mysql> SELECT * FROM sys.host_summary_by_file_io;
+------------+-------+------------+
| host | ios | io_latency |
+------------+-------+------------+
| localhost | 67570 | 5.38 s |
| background | 3468 | 4.18 s |
+------------+-------+------------+
x$host_summary_by_file_io视图汇总了相同的数据,但显示了未格式化的皮秒延迟:
mysql> SELECT * FROM sys.x$host_summary_by_file_io;
+------------+-------+---------------+
| host | ios | io_latency |
+------------+-------+---------------+
| localhost | 67574 | 5380678125144 |
| background | 3474 | 4758696829416 |
+------------+-------+---------------+
没有x$
前缀的视图旨在提供更加用户友好和易于阅读的输出。带有x$
前缀的视图以原始形式显示相同的值,该视图更适合与其他对数据执行自己的处理的工具一起使用。
没有x$
前缀的视图在以下方面与相应的x$
视图不同:
-
字节计数使用format_bytes()以大小单位格式化。
-
时间值使用format_time()以时间单位格式化。
-
使用format_statement()将 SQL 语句截断为最大显示宽度。
-
路径名使用format_path()缩短。