Skip to content

Commit

Permalink
add column reader count
Browse files Browse the repository at this point in the history
  • Loading branch information
dataroaring committed May 31, 2024
1 parent ba424d2 commit 6c88e59
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions be/src/olap/rowset/segment_v2/column_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ namespace doris {
namespace segment_v2 {

static bvar::Adder<size_t> g_column_reader_memory_bytes("doris_column_reader_memory_bytes");
static bvar::Adder<size_t> g_column_reader_num("doris_column_reader_num");

Status ColumnReader::create(const ColumnReaderOptions& opts, const ColumnMetaPB& meta,
uint64_t num_rows, const io::FileReaderSPtr& file_reader,
Expand Down Expand Up @@ -210,10 +211,12 @@ ColumnReader::ColumnReader(const ColumnReaderOptions& opts, const ColumnMetaPB&
_meta_compression = meta.compression();

g_column_reader_memory_bytes << sizeof(*this);
g_column_reader_num << 1;
}

ColumnReader::~ColumnReader() {
g_column_reader_memory_bytes << -sizeof(*this);
g_column_reader_num << -1;
}

Status ColumnReader::init(const ColumnMetaPB* meta) {
Expand Down

0 comments on commit 6c88e59

Please sign in to comment.