Skip to content

Commit

Permalink
add rdb_estimate_num_keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Smityz committed Feb 17, 2020
1 parent 789c79b commit 49ed06e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/server/info_collector.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class info_collector
rdb_index_and_filter_blocks_mem_usage->set(
row_stats.total_rdb_index_and_filter_blocks_mem_usage);
rdb_memtable_mem_usage->set(row_stats.total_rdb_memtable_mem_usage);
rdb_estimate_num_keys->set(row_stats.total_rdb_estimate_num_keys);
read_qps->set(row_stats.get_total_read_qps());
write_qps->set(row_stats.get_total_write_qps());
}
Expand Down
2 changes: 2 additions & 0 deletions src/server/table_stats.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ struct table_stats
total_rdb_block_cache_total_count += row.rdb_block_cache_total_count;
total_rdb_index_and_filter_blocks_mem_usage += row.rdb_index_and_filter_blocks_mem_usage;
total_rdb_memtable_mem_usage += row.rdb_memtable_mem_usage;
total_rdb_estimate_num_keys += row.rdb_estimate_num_keys;
}

void merge(const table_stats &row_stats)
Expand Down Expand Up @@ -100,6 +101,7 @@ struct table_stats
double total_rdb_block_cache_total_count = 0;
double total_rdb_index_and_filter_blocks_mem_usage = 0;
double total_rdb_memtable_mem_usage = 0;
double total_rdb_estimate_num_keys = 0;
double max_total_qps = 0;
double min_total_qps = INT_MAX;
double max_total_cu = 0;
Expand Down

0 comments on commit 49ed06e

Please sign in to comment.