mysql> use sys
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> show tables;
+-----------------------------------------------+
| Tables_in_sys                                 |
+-----------------------------------------------+
| host_summary                                  |
| host_summary_by_file_io                       |
| host_summary_by_file_io_type                  |
| host_summary_by_stages                        |
| host_summary_by_statement_latency             |
| host_summary_by_statement_type                |
| innodb_buffer_stats_by_schema                 |
| innodb_buffer_stats_by_table                  |
| innodb_lock_waits                             |
| io_by_thread_by_latency                       |
| io_global_by_file_by_bytes                    |
| io_global_by_file_by_latency                  |
| io_global_by_wait_by_bytes                    |
| io_global_by_wait_by_latency                  |
| latest_file_io                                |
| memory_by_host_by_current_bytes               |
| memory_by_thread_by_current_bytes             |
| memory_by_user_by_current_bytes               |
| memory_global_by_current_bytes                |
| memory_global_total                           |
| metrics                                       |
| processlist                                   |
| ps_check_lost_instrumentation                 |
| schema_auto_increment_columns                 |
| schema_index_statistics                       |
| schema_object_overview                        |
| schema_redundant_indexes                      |
| schema_table_lock_waits                       |
| schema_table_statistics                       |
| schema_table_statistics_with_buffer           |
| schema_tables_with_full_table_scans           |
| schema_unused_indexes                         |
| session                                       |
| session_ssl_status                            |
| statement_analysis                            |
| statements_with_errors_or_warnings            |
| statements_with_full_table_scans              |
| statements_with_runtimes_in_95th_percentile   |
| statements_with_sorting                       |
| statements_with_temp_tables                   |
| sys_config                                    |
| user_summary                                  |
| user_summary_by_file_io                       |
| user_summary_by_file_io_type                  |
| user_summary_by_stages                        |
| user_summary_by_statement_latency             |
| user_summary_by_statement_type                |
| version                                       |
| wait_classes_global_by_avg_latency            |
| wait_classes_global_by_latency                |
| waits_by_host_by_latency                      |
| waits_by_user_by_latency                      |
| waits_global_by_latency                       |
| x$host_summary                                |
| x$host_summary_by_file_io                     |
| x$host_summary_by_file_io_type                |
| x$host_summary_by_statement_latency           |
| x$host_summary_by_statement_type              |
| x$innodb_buffer_stats_by_schema               |
| x$innodb_buffer_stats_by_table                |
| x$innodb_lock_waits                           |
| x$io_by_thread_by_latency                     |
| x$io_global_by_file_by_bytes                  |
| x$io_global_by_file_by_latency                |
| x$io_global_by_wait_by_bytes                  |
| x$io_global_by_wait_by_latency                |
| x$latest_file_io                              |
| x$memory_by_host_by_current_bytes             |
| x$memory_by_thread_by_current_bytes           |
| x$memory_by_user_by_current_bytes             |
| x$memory_global_by_current_bytes              |
| x$memory_global_total                         |
| x$processlist                                 |
| x$ps_digest_95th_percentile_by_avg_us         |
| x$ps_digest_avg_latency_distribution          |
| x$ps_schema_table_statistics_io               |
| x$schema_flattened_keys                       |
| x$schema_index_statistics                     |
| x$schema_table_lock_waits                     |
| x$schema_table_statistics                     |
| x$schema_table_statistics_with_buffer         |
| x$schema_tables_with_full_table_scans         |
| x$session                                     |
| x$statement_analysis                          |
| x$statements_with_errors_or_warnings          |
| x$statements_with_full_table_scans            |
| x$statements_with_runtimes_in_95th_percentile |
| x$statements_with_sorting                     |
| x$statements_with_temp_tables                 |
| x$user_summary                                |
| x$user_summary_by_file_io                     |
| x$user_summary_by_file_io_type                |
| x$user_summary_by_stages                      |
| x$user_summary_by_statement_latency           |
| x$user_summary_by_statement_type              |
| x$wait_classes_global_by_avg_latency          |
| x$wait_classes_global_by_latency              |
| x$waits_by_host_by_latency                    |
| x$waits_by_user_by_latency                    |
| x$waits_global_by_latency                     |
+-----------------------------------------------+
101 rows in set (0.00 sec)
說明 :
host_summary 、 x$host_summary
▲host_summary表按host分組統計了語句的執行時間,次數,相關檔案的IO,連線數和記憶體分配等資訊          
host_summary_by_file_io 、 x$host_summary_by_file_io
▲從host角度分組統了I/O的總體情況
host_summary_by_file_io_type 、 x$host_summary_by_file_io_type
▲從host角度,統計了每個I/O事件的資訊
host_summary_by_stages 、 x$host_summary_by_stages
▲從host角度,統計了每個I/O事件各個階段的資訊
host_summary_by_statement_latency 、 x$host_summary_by_statement_latency 
▲按照host角度,統計了host執行語句的總體情況。包括執行的sql語句數,執行時間,鎖等待時間,返回的資料量等資訊
host_summary_by_statement_type 、 x$host_summary_by_statement_type
▲按照host和語句的執行型別,分組統計了包括執行的sql語句數,執行時間,鎖等待時間,返回的資料量等資訊。這個檢視只返回執行時間不為0的統計資訊
innodb_buffer_stats_by_schema 、 x$innodb_buffer_stats_by_schema
▲按資料分組統計了innodb buffer的相關資訊
innodb_buffer_stats_by_table 、 x$innodb_buffer_stats_by_table
▲從表的角度提供innodb buffer 的統計資訊
innodb_lock_waits 、 x$innodb_lock_waits
▲這個檢視彙總了innodb事物正在等待的鎖的情況
io_by_thread_by_latency 、 x$io_by_thread_by_latency
▲這個檢視從執行緒的角度,統計了I/O的延遲情況(I/O時間消耗)
io_global_by_file_by_bytes 、 x$io_global_by_file_by_bytes
▲這個檢視從每個檔案的角度,統計了I/O的情況(主要顯示檔案寫入和讀取的byte數量)
io_global_by_file_by_latency 、 x$io_global_by_file_by_latency
▲這個檢視從每個檔案的角度,統計了I/O的情況(主要顯示I/O的時間延遲)
io_global_by_wait_by_bytes 、 x$io_global_by_wait_by_bytes
▲這個檢視從I/O事件的角度(顯示的時候會有wait/io/file/ 這樣子的字首),統計了I/O的情況(主要顯示I/O的時間延遲,和寫入和讀取的byte數)
io_global_by_wait_by_latency 、 x$io_global_by_wait_by_latency
▲按照事件名稱後綴字符串分組,IO延遲時間排序的類別I/O等待時間統計信息
latest_file_io 、 x$latest_file_io
▲按照文件名和線程名稱分組,文件IO操作開始進行排序的最新的已經執行完成的I/O等待事件信息
memory_by_host_by_current_bytes 、 x$memory_by_host_by_current_bytes
▲內存使用,按主機分組
memory_by_thread_by_current_bytes 、 x$memory_by_thread_by_current_bytes
▲內存使用,按線程分組
memory_by_user_by_current_bytes 、 x$memory_by_user_by_current_bytes
▲內存使用,按用戶分組
memory_global_by_current_bytes 、 x$memory_global_by_current_bytes
▲內存使用,按分配類型分組
memory_global_total 、 x$memory_global_total
▲內存使用總量
metrics
▲流程表信息
processlist 、 x$processlist
▲線程相關的信息(包含內部線程及用戶連接)
ps_check_lost_instrumentation
▲已經失去工具的變量
schema_auto_increment_columns
▲AUTO_INCREMENT 列信息
schema_index_statistics 、 x$schema_index_statistics
▲指標統計
schema_object_overview   
▲每個模式中的對像類型
schema_redundant_indexes
▲重複或多餘的索引
schema_table_lock_waits 、 x$schema_table_lock_waits
▲會話正在等待元數據鎖定
schema_table_statistics 、 x$schema_table_statistics
▲表統計
schema_table_statistics_with_buffer 、 x$schema_table_statistics_with_buffer
▲表統計信息,包括InnoDB緩衝池統計信息
schema_tables_with_full_table_scans 、 x$schema_tables_with_full_table_scans
▲正在進行全面掃描的表格    
schema_unused_indexes
▲索引不在使用中                   
session 、 x$session
▲用戶會話的流程列表信息                    
session_ssl_status
▲連接SSL信息
statement_analysis 、 x$statement_analysis
▲聲明匯總統計            
statements_with_errors_or_warnings 、 x$statements_with_errors_or_warnings
▲發生錯誤或警告的語句
statements_with_full_table_scans 、 x$statements_with_full_table_scans
▲已經完成全表掃描的語句              
statements_with_runtimes_in_95th_percentile 、 x$statements_with_runtimes_in_95th_percentile
▲平均運行時間最高的語句
statements_with_sorting 、 x$statements_with_sorting
▲執行排序的語句
statements_with_temp_tables 、 x$statements_with_temp_tables
▲使用臨時表的語句
sys_config
▲該表包含sys系統庫的配置選項,每個配置選項一行記錄。該表是innodb表,可以通過客戶端更新此表來持久化配置,server重啟不會丟失
user_summary 、 x$user_summary
▲用戶聲明和連接活動
user_summary_by_file_io 、 x$user_summary_by_file_io
▲文件I / O,按用戶分組
user_summary_by_file_io_type 、 x$user_summary_by_file_io_type
▲文件I / O,按用戶和事件分組
user_summary_by_stages 、 x$user_summary_by_stages
▲舞台活動,按用戶分組
user_summary_by_statement_latency 、 x$user_summary_by_statement_latency
▲聲明統計,按用戶分組
user_summary_by_statement_type 、 x$user_summary_by_statement_type
▲執行的語句,按用戶和語句分組
version
▲當前模式和MySQL服務器版本sys
wait_classes_global_by_avg_latency 、 x$wait_classes_global_by_avg_latency
▲等待班級平均延遲,按事件類別分組
wait_classes_global_by_latency 、 x$wait_classes_global_by_latency
▲等待課程總延遲,按事件類別分組
waits_by_host_by_latency 、 x$waits_by_host_by_latency
▲等待事件,按主機和事件分組
waits_by_user_by_latency 、 x$waits_by_user_by_latency
▲等待事件,按用戶和事件分組
waits_global_by_latency 、 x$waits_global_by_latency
▲等待事件,按事件分組
x$ps_digest_95th_percentile_by_avg_us
▲95%百分位視圖的助手視圖
x$ps_digest_avg_latency_distribution
▲視圖的助手視圖
x$ps_schema_table_statistics_io
▲表統計視圖的助手視圖
x$schema_flattened_keys
▲幫手視圖
沒有留言:
張貼留言