- 30.4.3.1 host_summary 和 x$host_summary 视图30.4.3.1 The host_summary and x$host_summary Views
- 30.4.3.2 host_summary_by_file_io 和 x$host_summary_by_file_io 视图30.4.3.2 The host_summary_by_file_io and x$host_summary_by_file_io Views
- 30.4.3.3 host_summary_by_file_io_type 和 x$host_summary_by_file_io_type 视图30.4.3.3 The host_summary_by_file_io_type and x$host_summary_by_file_io_type Views
- 30.4.3.4 host_summary_by_stages 和 x$host_summary_by_stages 视图30.4.3.4 The host_summary_by_stages and x$host_summary_by_stages Views
- 30.4.3.5 host_summary_by_statement_latency 和 x$host_summary_by_statement_latency 视图30.4.3.5 The host_summary_by_statement_latency and x$host_summary_by_statement_latency Views
- 30.4.3.6 host_summary_by_statement_type 和 x$host_summary_by_statement_type 视图30.4.3.6 The host_summary_by_statement_type and x$host_summary_by_statement_type Views
- 30.4.3.7 innodb_buffer_stats_by_schema 与 x$innodb_buffer_stats_by_schema 视图30.4.3.7 The innodb_buffer_stats_by_schema and x$innodb_buffer_stats_by_schema Views
- 30.4.3.8 innodb_buffer_stats_by_table 与 x$innodb_buffer_stats_by_table 视图30.4.3.8 The innodb_buffer_stats_by_table and x$innodb_buffer_stats_by_table Views
- 30.4.3.9 innodb_lock_waits 与 x$innodb_lock_waits 视图30.4.3.9 The innodb_lock_waits and x$innodb_lock_waits Views
- 30.4.3.10 io_by_thread_by_latency 与 x$io_by_thread_by_latency 视图30.4.3.10 The io_by_thread_by_latency and x$io_by_thread_by_latency Views
- 30.4.3.11 io_global_by_file_by_bytes 与 x$io_global_by_file_by_bytes 视图30.4.3.11 The io_global_by_file_by_bytes and x$io_global_by_file_by_bytes Views
- 30.4.3.12 io_global_by_file_by_latency 和 x$io_global_by_file_by_latency 视图30.4.3.12 The io_global_by_file_by_latency and x$io_global_by_file_by_latency Views
- 30.4.3.13 io_global_by_wait_by_bytes 和 x$io_global_by_wait_by_bytes 视图30.4.3.13 The io_global_by_wait_by_bytes and x$io_global_by_wait_by_bytes Views
- 30.4.3.14 io_global_by_wait_by_latency 和 x$io_global_by_wait_by_latency 视图30.4.3.14 The io_global_by_wait_by_latency and x$io_global_by_wait_by_latency Views
- 30.4.3.15 latest_file_io 和 x$latest_file_io 视图30.4.3.15 The latest_file_io and x$latest_file_io Views
- 30.4.3.16 memory_by_host_by_current_bytes 和 x$memory_by_host_by_current_bytes 视图30.4.3.16 The memory_by_host_by_current_bytes and x$memory_by_host_by_current_bytes Views
- 30.4.3.17 memory_by_thread_by_current_bytes 和 x$memory_by_thread_by_current_bytes 视图30.4.3.17 The memory_by_thread_by_current_bytes and x$memory_by_thread_by_current_bytes Views
- 30.4.3.18 memory_by_user_by_current_bytes 和 x$memory_by_user_by_current_bytes 视图30.4.3.18 The memory_by_user_by_current_bytes and x$memory_by_user_by_current_bytes Views
- 30.4.3.19 memory_global_by_current_bytes 和 x$memory_global_by_current_bytes 视图30.4.3.19 The memory_global_by_current_bytes and x$memory_global_by_current_bytes Views
- 30.4.3.20 memory_global_total 和 x$memory_global_total 视图30.4.3.20 The memory_global_total and x$memory_global_total Views
- 30.4.3.21 metrics 视图30.4.3.21 The metrics View
- 30.4.3.22 processlist 和 x$processlist 视图30.4.3.22 The processlist and x$processlist Views
- 30.4.3.23 ps_check_lost_instrumentation 视图30.4.3.23 The ps_check_lost_instrumentation View
- 30.4.3.24 schema_auto_increment_columns 视图30.4.3.24 The schema_auto_increment_columns View
- 30.4.3.25 schema_index_statistics 和 x$schema_index_statistics 视图30.4.3.25 The schema_index_statistics and x$schema_index_statistics Views
- 30.4.3.26 schema_object_overview 视图30.4.3.26 The schema_object_overview View
- 30.4.3.27 schema_redundant_indexes 和 x$schema_flattened_keys 视图30.4.3.27 The schema_redundant_indexes and x$schema_flattened_keys Views
- 30.4.3.28 schema_table_lock_waits 和 x$schema_table_lock_waits 视图30.4.3.28 The schema_table_lock_waits and x$schema_table_lock_waits Views
- 30.4.3.29 schema_table_statistics 与 x$schema_table_statistics 视图30.4.3.29 The schema_table_statistics and x$schema_table_statistics Views
- 30.4.3.30 schema_table_statistics_with_buffer 与 x$schema_table_statistics_with_buffer 视图30.4.3.30 The schema_table_statistics_with_buffer and x$schema_table_statistics_with_buffer Views
- 30.4.3.31 schema_tables_with_full_table_scans 与 x$schema_tables_with_full_table_scans 视图30.4.3.31 The schema_tables_with_full_table_scans and x$schema_tables_with_full_table_scans Views
- 30.4.3.32 schema_unused_indexes 视图30.4.3.32 The schema_unused_indexes View
- 30.4.3.33 session 与 x$session 视图30.4.3.33 The session and x$session Views
- 30.4.3.34 session_ssl_status 视图30.4.3.34 The session_ssl_status View
- 30.4.3.35 statement_analysis 和 x$statement_analysis 视图30.4.3.35 The statement_analysis and x$statement_analysis Views
- 30.4.3.36 statements_with_errors_or_warnings 和 x$statements_with_errors_or_warnings 视图30.4.3.36 The statements_with_errors_or_warnings and x$statements_with_errors_or_warnings Views
- 30.4.3.37 statements_with_full_table_scans 和 x$statements_with_full_table_scans 视图30.4.3.37 The statements_with_full_table_scans and x$statements_with_full_table_scans Views
- 30.4.3.38 statements_with_runtimes_in_95th_percentile 和 x$statements_with_runtimes_in_95th_percentile 视图30.4.3.38 The statements_with_runtimes_in_95th_percentile and x$statements_with_runtimes_in_95th_percentile Views
- 30.4.3.39 statements_with_sorting 和 x$statements_with_sorting 视图30.4.3.39 The statements_with_sorting and x$statements_with_sorting Views
- 30.4.3.40 statements_with_temp_tables 和 x$statements_with_temp_tables 视图30.4.3.40 The statements_with_temp_tables and x$statements_with_temp_tables Views
- 30.4.3.41 user_summary 和 x$user_summary 视图30.4.3.41 The user_summary and x$user_summary Views
- 30.4.3.42 user_summary_by_file_io 和 x$user_summary_by_file_io 视图30.4.3.42 The user_summary_by_file_io and x$user_summary_by_file_io Views
- 30.4.3.43 user_summary_by_file_io_type 和 x$user_summary_by_file_io_type 视图30.4.3.43 The user_summary_by_file_io_type and x$user_summary_by_file_io_type Views
- 30.4.3.44 user_summary_by_stages 和 x$user_summary_by_stages 视图30.4.3.44 The user_summary_by_stages and x$user_summary_by_stages Views
- 30.4.3.45 user_summary_by_statement_latency 和 x$user_summary_by_statement_latency 视图30.4.3.45 The user_summary_by_statement_latency and x$user_summary_by_statement_latency Views
- 30.4.3.46 user_summary_by_statement_type 和 x$user_summary_by_statement_type 视图30.4.3.46 The user_summary_by_statement_type and x$user_summary_by_statement_type Views
- 30.4.3.47 version 视图30.4.3.47 The version View
- 30.4.3.48 wait_classes_global_by_avg_latency 和 x$wait_classes_global_by_avg_latency 视图30.4.3.48 The wait_classes_global_by_avg_latency and x$wait_classes_global_by_avg_latency Views
- 30.4.3.49 wait_classes_global_by_latency 和 x$wait_classes_global_by_latency 视图30.4.3.49 The wait_classes_global_by_latency and x$wait_classes_global_by_latency Views
- 30.4.3.50 waits_by_host_by_latency 和 x$waits_by_host_by_latency 视图30.4.3.50 The waits_by_host_by_latency and x$waits_by_host_by_latency Views
- 30.4.3.51 waits_by_user_by_latency 和 x$waits_by_user_by_latency 视图30.4.3.51 The waits_by_user_by_latency and x$waits_by_user_by_latency Views
- 30.4.3.52 waits_global_by_latency 和 x$waits_global_by_latency 视图30.4.3.52 The waits_global_by_latency and x$waits_global_by_latency Views
下面各节描述了 sys 模式视图。The following sections describe
sys schema views.
sys 模式包含许多以各种方式汇总性能模式表的视图。大多数这些视图都是成对出现的,其中一个成员的名称与另一个成员相同,只是在前面加上 x$ 前缀。例如,host_summary_by_file_io 视图汇总按主机分组的文件 I/O,并将延迟从皮秒转换为更易读的数值(带单位);The sys schema contains many views that
summarize Performance Schema tables in various ways. Most of
these views come in pairs, such that one member of the pair has
the same name as the other member, plus a x$
prefix. For example, the
host_summary_by_file_io view
summarizes file I/O grouped by host and displays latencies
converted from picoseconds to more readable values (with units);
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 视图汇总相同的数据,但显示未格式化的皮秒延迟:The x$host_summary_by_file_io view
summarizes the same data but displays unformatted picosecond
latencies:
mysql> SELECT * FROM sys.x$host_summary_by_file_io;
+------------+-------+---------------+
| host | ios | io_latency |
+------------+-------+---------------+
| localhost | 67574 | 5380678125144 |
| background | 3474 | 4758696829416 |
+------------+-------+---------------+
没有 x$ 前缀的视图旨在提供更用户友好且更易于阅读的输出。带有 x$ 前缀的视图以原始形式显示相同的值,更多用于其他对数据进行处理的工具。The view without the x$ prefix is intended to
provide output that is more user friendly and easier to read.
The view with the x$ prefix that displays the
same values in raw form is intended more for use with other
tools that perform their own processing on the data.
没有 x$ 前缀的视图与对应的 x$ 视图在以下方面有所不同:Views without the x$ prefix differ from the
corresponding x$ views in these ways:
字节计数使用
format_bytes()按大小单位格式化。Byte counts are formatted with size units usingformat_bytes().时间值使用
format_time()按时间单位格式化。Time values are formatted with temporal units usingformat_time().SQL 语句使用
format_statement()截断至最大显示宽度。SQL statements are truncated to a maximum display width usingformat_statement().路径名使用
format_path()缩短。Path name are shortened usingformat_path().