提交 1fde9e06 编写于 作者: K KernelMaker

Merge branch 'timestamp-binlog' of github.com:Qihoo360/pika into timestamp-binlog

......@@ -629,6 +629,13 @@ void InfoCmd::InfoData(std::string &info) {
tmp_stream << "compression:" << g_pika_conf->compression() << "\r\n";
tmp_stream << "used_memory:" << db_size << "\r\n";
uint64_t usage;
g_pika_server->db()->GetUsage(nemo::USAGE_TYPE_ROCKSDB_MEMTABLE, &usage);
tmp_stream << "db_memtable_usage:" << usage << "Bytes\r\n";
g_pika_server->db()->GetUsage(nemo::USAGE_TYPE_ROCKSDB_TABLE_READER, &usage);
tmp_stream << "db_tablereader_usage:" << usage << "Bytes\r\n";
info.append(tmp_stream.str());
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册