Documentation Home
MySQL 8.4 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 39.8Mb
PDF (A4) - 39.9Mb
Man Pages (TGZ) - 257.9Kb
Man Pages (Zip) - 364.9Kb
Info (Gzip) - 4.0Mb
Info (Zip) - 4.0Mb


30.4.3 sys Schema 视图

30.4.3.1 host_summary 和 x$host_summary 视图
30.4.3.2 host_summary_by_file_io 和 x$host_summary_by_file_io 视图
30.4.3.3 host_summary_by_file_io_type 和 x$host_summary_by_file_io_type 视图
30.4.3.4 host_summary_by_stages 和 x$host_summary_by_stages 视图
30.4.3.5 host_summary_by_statement_latency 和 x$host_summary_by_statement_latency 视图
30.4.3.6 host_summary_by_statement_type 和 x$host_summary_by_statement_type 视图
30.4.3.7 innodb_buffer_stats_by_schema 和 x$innodb_buffer_stats_by_schema 视图
30.4.3.8 innodb_buffer_stats_by_table 和 x$innodb_buffer_stats_by_table 视图
30.4.3.9 innodb_lock_waits 和 x$innodb_lock_waits 视图
30.4.3.10 io_by_thread_by_latency 和 x$io_by_thread_by_latency 视图
30.4.3.11 io_global_by_file_by_bytes 和 x$io_global_by_file_by_bytes 视图
30.4.3.12 io_global_by_file_by_latency 和 x$io_global_by_file_by_latency 视图
30.4.3.13 io_global_by_wait_by_bytes 和 x$io_global_by_wait_by_bytes 视图
30.4.3.14 io_global_by_wait_by_latency 和 x$io_global_by_wait_by_latency 视图
30.4.3.15 latest_file_io 和 x$latest_file_io 视图
30.4.3.16 memory_by_host_by_current_bytes 和 x$memory_by_host_by_current_bytes 视图
30.4.3.17 memory_by_thread_by_current_bytes 和 x$memory_by_thread_by_current_bytes 视图
30.4.3.18 memory_by_user_by_current_bytes 和 x$memory_by_user_by_current_bytes 视图
30.4.3.19 memory_global_by_current_bytes 和 x$memory_global_by_current_bytes 视图
30.4.3.20 memory_global_total 和 x$memory_global_total 视图
30.4.3.21 metrics 视图
30.4.3.22 processlist 和 x$processlist 视图
30.4.3.23 ps_check_lost_instrumentation 视图
30.4.3.24 schema_auto_increment_columns 视图
30.4.3.25 The schema_index_statistics and x$schema_index_statistics 视图
30.4.3.26 schema_object_overview 视图
30.4.3.27 The schema_redundant_indexes and x$schema_flattened_keys 视图
30.4.3.28 The schema_table_lock_waits and x$schema_table_lock_waits 视图
30.4.3.29 The schema_table_statistics and x$schema_table_statistics 视图
30.4.3.30 The schema_table_statistics_with_buffer and x$schema_table_statistics_with_buffer 视图
30.4.3.31 The schema_tables_with_full_table_scans and x$schema_tables_with_full_table_scans 视图
30.4.3.32 schema_unused_indexes 视图
30.4.3.33 The session and x$session 视图
30.4.3.34 session_ssl_status 视图
30.4.3.35 The statement_analysis and x$statement_analysis 视图
30.4.3.36 The statements_with_errors_or_warnings and x$statements_with_errors_or_warnings 视图
30.4.3.37 The statements_with_full_table_scans and x$statements_with_full_table_scans 视图
30.4.3.38 The statements_with_runtimes_in_95th_percentile and x$statements_with_runtimes_in_95th_percentile 视图
30.4.3.39 The statements_with_sorting and x$statements_with_sorting 视图
30.4.3.40 The statements_with_temp_tables and x$statements_with_temp_tables 视图
30.4.3.41 The user_summary and x$user_summary 视图
30.4.3.42 The user_summary_by_file_io and x$user_summary_by_file_io 视图
30.4.3.43 The user_summary_by_file_io_type and x$user_summary_by_file_io_type 视图
30.4.3.44 The user_summary_by_stages and x$user_summary_by_stages 视图
30.4.3.45 The user_summary_by_statement_latency and x$user_summary_by_statement_latency 视图
30.4.3.46 The user_summary_by_statement_type and x$user_summary_by_statement_type 视图
30.4.3.47 版本视图
30.4.3.48 等待类别_global_by_avg_延迟和x$等待类别_global_by_avg_延迟视图
30.4.3.49 等待类别_global_by_延迟和x$等待类别_global_by_延迟视图
30.4.3.50 主机_等待_by_延迟和x$主机_等待_by_延迟视图
30.4.3.51 用户_等待_by_延迟和x$用户_等待_by_延迟视图
30.4.3.52 全球_等待_by_延迟和x$全球_等待_by_延迟视图

以下部分描述了sys架构视图。

sys架构包含许多视图,这些视图对Performance Schema 表进行了各种汇总。这些视图的大多数是成对出现的,其中一个成员的名称与另一个成员相同,但前者加上了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$视图不同之处在于: