diff options
Diffstat (limited to 'storage/rocksdb/rdb_psi.cc')
-rw-r--r-- | storage/rocksdb/rdb_psi.cc | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/storage/rocksdb/rdb_psi.cc b/storage/rocksdb/rdb_psi.cc index b5309df5973..361a648bba4 100644 --- a/storage/rocksdb/rdb_psi.cc +++ b/storage/rocksdb/rdb_psi.cc @@ -38,22 +38,25 @@ my_core::PSI_stage_info stage_waiting_on_row_lock = {0, "Waiting for row lock", my_core::PSI_stage_info *all_rocksdb_stages[] = {&stage_waiting_on_row_lock}; my_core::PSI_thread_key rdb_background_psi_thread_key, - rdb_drop_idx_psi_thread_key; + rdb_drop_idx_psi_thread_key, rdb_mc_psi_thread_key; my_core::PSI_thread_info all_rocksdb_threads[] = { {&rdb_background_psi_thread_key, "background", PSI_FLAG_GLOBAL}, {&rdb_drop_idx_psi_thread_key, "drop index", PSI_FLAG_GLOBAL}, + {&rdb_mc_psi_thread_key, "manual compaction", PSI_FLAG_GLOBAL}, }; my_core::PSI_mutex_key rdb_psi_open_tbls_mutex_key, rdb_signal_bg_psi_mutex_key, - rdb_signal_drop_idx_psi_mutex_key, rdb_collation_data_mutex_key, - rdb_mem_cmp_space_mutex_key, key_mutex_tx_list, rdb_sysvars_psi_mutex_key, - rdb_cfm_mutex_key, rdb_sst_commit_key; + rdb_signal_drop_idx_psi_mutex_key, rdb_signal_mc_psi_mutex_key, + rdb_collation_data_mutex_key, rdb_mem_cmp_space_mutex_key, + key_mutex_tx_list, rdb_sysvars_psi_mutex_key, rdb_cfm_mutex_key, + rdb_sst_commit_key, rdb_block_cache_resize_mutex_key; my_core::PSI_mutex_info all_rocksdb_mutexes[] = { {&rdb_psi_open_tbls_mutex_key, "open tables", PSI_FLAG_GLOBAL}, {&rdb_signal_bg_psi_mutex_key, "stop background", PSI_FLAG_GLOBAL}, {&rdb_signal_drop_idx_psi_mutex_key, "signal drop index", PSI_FLAG_GLOBAL}, + {&rdb_signal_mc_psi_mutex_key, "signal manual compaction", PSI_FLAG_GLOBAL}, {&rdb_collation_data_mutex_key, "collation data init", PSI_FLAG_GLOBAL}, {&rdb_mem_cmp_space_mutex_key, "collation space char data init", PSI_FLAG_GLOBAL}, @@ -61,6 +64,8 @@ my_core::PSI_mutex_info all_rocksdb_mutexes[] = { {&rdb_sysvars_psi_mutex_key, "setting sysvar", PSI_FLAG_GLOBAL}, {&rdb_cfm_mutex_key, "column family manager", PSI_FLAG_GLOBAL}, {&rdb_sst_commit_key, "sst commit", PSI_FLAG_GLOBAL}, + {&rdb_block_cache_resize_mutex_key, "resizing block cache", + PSI_FLAG_GLOBAL}, }; my_core::PSI_rwlock_key key_rwlock_collation_exception_list, @@ -75,12 +80,14 @@ my_core::PSI_rwlock_info all_rocksdb_rwlocks[] = { }; my_core::PSI_cond_key rdb_signal_bg_psi_cond_key, - rdb_signal_drop_idx_psi_cond_key; + rdb_signal_drop_idx_psi_cond_key, rdb_signal_mc_psi_cond_key; my_core::PSI_cond_info all_rocksdb_conds[] = { {&rdb_signal_bg_psi_cond_key, "cond signal background", PSI_FLAG_GLOBAL}, {&rdb_signal_drop_idx_psi_cond_key, "cond signal drop index", PSI_FLAG_GLOBAL}, + {&rdb_signal_mc_psi_cond_key, "cond signal manual compaction", + PSI_FLAG_GLOBAL}, }; void init_rocksdb_psi_keys() { |