文件首頁
MySQL 9.0 參考手冊
相關文件 下載本手冊
PDF (US Ltr) - 40.0Mb
PDF (A4) - 40.1Mb
Man Pages (TGZ) - 258.2Kb
Man Pages (Zip) - 365.3Kb
Info (Gzip) - 4.0Mb
Info (Zip) - 4.0Mb


MySQL 9.0 參考手冊  /  ...  /  sys 結構描述檢視

30.4.3 sys 結構描述檢視

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 schema_index_statistics 和 x$schema_index_statistics 檢視
30.4.3.26 schema_object_overview 檢視
30.4.3.27 schema_redundant_indexes 和 x$schema_flattened_keys 檢視
30.4.3.28 schema_table_lock_waits 和 x$schema_table_lock_waits 檢視
30.4.3.29 schema_table_statistics 和 x$schema_table_statistics 檢視
30.4.3.30 schema_table_statistics_with_buffer 和 x$schema_table_statistics_with_buffer 檢視
30.4.3.31 schema_tables_with_full_table_scans 和 x$schema_tables_with_full_table_scans 檢視
30.4.3.32 schema_unused_indexes 檢視
30.4.3.33 session 和 x$session 檢視
30.4.3.34 session_ssl_status 檢視
30.4.3.35 statement_analysis 和 x$statement_analysis 檢視
30.4.3.36 statements_with_errors_or_warnings 和 x$statements_with_errors_or_warnings 檢視
30.4.3.37 statements_with_full_table_scans 和 x$statements_with_full_table_scans 檢視
30.4.3.38 statements_with_runtimes_in_95th_percentile 和 x$statements_with_runtimes_in_95th_percentile 檢視
30.4.3.39 statements_with_sorting 和 x$statements_with_sorting 檢視
30.4.3.40 statements_with_temp_tables 和 x$statements_with_temp_tables 檢視
30.4.3.41 user_summary 和 x$user_summary 檢視
30.4.3.42 user_summary_by_file_io 和 x$user_summary_by_file_io 檢視
30.4.3.43 user_summary_by_file_io_type 和 x$user_summary_by_file_io_type 檢視
30.4.3.44 user_summary_by_stages 和 x$user_summary_by_stages 檢視
30.4.3.45 user_summary_by_statement_latency 和 x$user_summary_by_statement_latency 檢視
30.4.3.46 user_summary_by_statement_type 和 x$user_summary_by_statement_type 檢視
30.4.3.47 version 檢視
30.4.3.48 wait_classes_global_by_avg_latency 和 x$wait_classes_global_by_avg_latency 檢視
30.4.3.49 wait_classes_global_by_latency 和 x$wait_classes_global_by_latency 檢視
30.4.3.50 waits_by_host_by_latency 和 x$waits_by_host_by_latency 檢視
30.4.3.51 waits_by_user_by_latency 和 x$waits_by_user_by_latency 檢視
30.4.3.52 waits_global_by_latency 和 x$waits_global_by_latency 檢視

以下章節描述 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$ 檢視在以下方面有所不同: