Unverified Commit 96922d49 authored by Connor's avatar Connor Committed by GitHub

update io stats for level-merge (#106)

* update io stats for level-merge
Signed-off-by: 's avatarConnor1996 <zbk602423539@gmail.com>
parent 8376c989
......@@ -89,6 +89,8 @@ void TitanTableBuilder::Add(const Slice& key, const Slice& value) {
if (s.ok()) {
std::string index_value;
AddBlob(ikey.user_key, record.value, &index_value);
UpdateIOBytes(prev_bytes_read, prev_bytes_written, &io_bytes_read_,
&io_bytes_written_);
if (ok()) {
std::string index_key;
ikey.type = kTypeBlobIndex;
......
......@@ -81,9 +81,10 @@ const std::array<std::string,
void TitanInternalStats::DumpAndResetInternalOpStats(LogBuffer* log_buffer) {
constexpr double GB = 1.0 * 1024 * 1024 * 1024;
constexpr double SECOND = 1.0 * 1000000;
LogToBuffer(log_buffer,
"OP COUNT READ(GB) WRITE(GB) IO_READ(GB) IO_WRITE(GB) "
" FILE_IN FILE_OUT");
LogToBuffer(
log_buffer,
"OP COUNT READ(GB) WRITE(GB) IO_READ(GB) IO_WRITE(GB) "
" FILE_IN FILE_OUT GC_SAMPLE(MICROS) GC_READ(MICROS) GC_UPDATE(MICROS)");
LogToBuffer(log_buffer,
"----------------------------------------------------------------"
"-----------------");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment