Coverage Report

Created: 2024-11-21 18:14

/root/doris/be/src/olap/metadata_adder.h
Line
Count
Source (jump to first uncovered line)
1
// Licensed to the Apache Software Foundation (ASF) under one
2
// or more contributor license agreements.  See the NOTICE file
3
// distributed with this work for additional information
4
// regarding copyright ownership.  The ASF licenses this file
5
// to you under the Apache License, Version 2.0 (the
6
// "License"); you may not use this file except in compliance
7
// with the License.  You may obtain a copy of the License at
8
//
9
//   http://www.apache.org/licenses/LICENSE-2.0
10
//
11
// Unless required by applicable law or agreed to in writing,
12
// software distributed under the License is distributed on an
13
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
// KIND, either express or implied.  See the License for the
15
// specific language governing permissions and limitations
16
// under the License.
17
18
#pragma once
19
20
#include <bvar/bvar.h>
21
#include <stdint.h>
22
23
namespace doris {
24
25
inline bvar::Adder<int64_t> g_rowset_meta_mem_bytes("doris_rowset_meta_mem_bytes");
26
inline bvar::Adder<int64_t> g_rowset_meta_num("doris_rowset_meta_num");
27
28
inline bvar::Adder<int64_t> g_tablet_meta_mem_bytes("doris_tablet_meta_mem_bytes");
29
inline bvar::Adder<int64_t> g_tablet_meta_num("doris_tablet_meta_num");
30
31
inline bvar::Adder<int64_t> g_tablet_column_mem_bytes("doris_tablet_column_mem_bytes");
32
inline bvar::Adder<int64_t> g_tablet_column_num("doris_tablet_column_num");
33
34
inline bvar::Adder<int64_t> g_tablet_index_mem_bytes("doris_tablet_index_mem_bytes");
35
inline bvar::Adder<int64_t> g_tablet_index_num("doris_tablet_index_num");
36
37
inline bvar::Adder<int64_t> g_tablet_schema_mem_bytes("doris_tablet_schema_mem_bytes");
38
inline bvar::Adder<int64_t> g_tablet_schema_num("doris_tablet_schema_num");
39
40
inline bvar::Adder<int64_t> g_segment_mem_bytes("doris_segment_mem_bytes");
41
inline bvar::Adder<int64_t> g_segment_num("doris_segment_num");
42
43
inline bvar::Adder<int64_t> g_column_reader_mem_bytes("doris_column_reader_mem_bytes");
44
inline bvar::Adder<int64_t> g_column_reader_num("doris_column_reader_num");
45
46
inline bvar::Adder<int64_t> g_bitmap_index_reader_mem_bytes("doris_bitmap_index_reader_mem_bytes");
47
inline bvar::Adder<int64_t> g_bitmap_index_reader_num("doris_bitmap_index_reader_num");
48
49
inline bvar::Adder<int64_t> g_bloom_filter_index_reader_mem_bytes(
50
        "doris_bloom_filter_index_reader_mem_bytes");
51
inline bvar::Adder<int64_t> g_bloom_filter_index_reader_num("doris_bloom_filter_index_reader_num");
52
53
inline bvar::Adder<int64_t> g_index_page_reader_mem_bytes("doris_index_page_reader_mem_bytes");
54
inline bvar::Adder<int64_t> g_index_page_reader_num("doris_index_page_reader_num");
55
56
inline bvar::Adder<int64_t> g_indexed_column_reader_mem_bytes(
57
        "doris_indexed_column_reader_mem_bytes");
58
inline bvar::Adder<int64_t> g_indexed_column_reader_num("doris_indexed_column_reader_num");
59
60
inline bvar::Adder<int64_t> g_inverted_index_reader_mem_bytes(
61
        "doris_inverted_index_reader_mem_bytes");
62
inline bvar::Adder<int64_t> g_inverted_index_reader_num("doris_inverted_index_reader_num");
63
64
inline bvar::Adder<int64_t> g_ordinal_index_reader_mem_bytes(
65
        "doris_ordinal_index_reader_mem_bytes");
66
inline bvar::Adder<int64_t> g_ordinal_index_reader_num("doris_ordinal_index_reader_num");
67
68
inline bvar::Adder<int64_t> g_zone_map_index_reader_mem_bytes(
69
        "doris_zone_map_index_reader_mem_bytes");
70
inline bvar::Adder<int64_t> g_zone_map_index_reader_num("doris_zone_map_index_reader_num");
71
72
class RowsetMeta;
73
class TabletMeta;
74
class TabletColumn;
75
class TabletIndex;
76
class TabletSchema;
77
78
namespace segment_v2 {
79
class Segment;
80
class ColumnReader;
81
class BitmapIndexReader;
82
class BloomFilterIndexReader;
83
class IndexPageReader;
84
class IndexedColumnReader;
85
class InvertedIndexReader;
86
class OrdinalIndexReader;
87
class ZoneMapIndexReader;
88
}; // namespace segment_v2
89
90
/*
91
    When a derived Class extends MetadataAdder, then the Class's number and fixed length field's memory can be counted automatically.
92
    But if the Class has variable length field, then you should overwrite get_metadata_size and call update_metadata_size when the Class's memory changes.
93
94
    There are some special situations that need to be noted:
95
    1. when the derived Class override copy constructor, you'd better update memory size(call update_metadata_size) if derived class's 
96
    memory changed in its copy constructor or you not call MetadataAdder's copy constructor.
97
    2. when the derived Class override operator=, you'd better update memory size(call update_metadata_size) if the derived Class has variable length field;
98
99
    Anyway, you should update mem size whenever derived Class's memory changes.
100
*/
101
102
template <typename T>
103
class MetadataAdder {
104
public:
105
    MetadataAdder();
106
107
protected:
108
    MetadataAdder(const MetadataAdder& other);
109
110
    virtual ~MetadataAdder();
111
112
0
    virtual int64_t get_metadata_size() const { return sizeof(T); }
Unexecuted instantiation: _ZNK5doris13MetadataAdderINS_10segment_v215IndexPageReaderEE17get_metadata_sizeEv
Unexecuted instantiation: _ZNK5doris13MetadataAdderINS_10segment_v219IndexedColumnReaderEE17get_metadata_sizeEv
Unexecuted instantiation: _ZNK5doris13MetadataAdderINS_10segment_v219InvertedIndexReaderEE17get_metadata_sizeEv
Unexecuted instantiation: _ZNK5doris13MetadataAdderINS_10segment_v218OrdinalIndexReaderEE17get_metadata_sizeEv
Unexecuted instantiation: _ZNK5doris13MetadataAdderINS_10segment_v217BitmapIndexReaderEE17get_metadata_sizeEv
Unexecuted instantiation: _ZNK5doris13MetadataAdderINS_11TabletIndexEE17get_metadata_sizeEv
Unexecuted instantiation: _ZNK5doris13MetadataAdderINS_12TabletColumnEE17get_metadata_sizeEv
Unexecuted instantiation: _ZNK5doris13MetadataAdderINS_10TabletMetaEE17get_metadata_sizeEv
Unexecuted instantiation: _ZNK5doris13MetadataAdderINS_10RowsetMetaEE17get_metadata_sizeEv
Unexecuted instantiation: _ZNK5doris13MetadataAdderINS_10segment_v222BloomFilterIndexReaderEE17get_metadata_sizeEv
Unexecuted instantiation: _ZNK5doris13MetadataAdderINS_10segment_v218ZoneMapIndexReaderEE17get_metadata_sizeEv
Unexecuted instantiation: _ZNK5doris13MetadataAdderINS_10segment_v27SegmentEE17get_metadata_sizeEv
Unexecuted instantiation: _ZNK5doris13MetadataAdderINS_10segment_v212ColumnReaderEE17get_metadata_sizeEv
Unexecuted instantiation: _ZNK5doris13MetadataAdderINS_12TabletSchemaEE17get_metadata_sizeEv
113
114
    void update_metadata_size();
115
116
0
    MetadataAdder<T>& operator=(const MetadataAdder<T>& other) = default;
117
118
private:
119
    int64_t _current_meta_size {0};
120
121
    void add_mem_size(int64_t val);
122
123
    void add_num(int64_t val);
124
};
125
126
template <typename T>
127
29.8k
MetadataAdder<T>::MetadataAdder(const MetadataAdder<T>& other) {
128
29.8k
    this->_current_meta_size = other._current_meta_size;
129
29.8k
    add_num(1);
130
29.8k
    add_mem_size(this->_current_meta_size);
131
29.8k
}
_ZN5doris13MetadataAdderINS_12TabletColumnEEC2ERKS2_
Line
Count
Source
127
29.4k
MetadataAdder<T>::MetadataAdder(const MetadataAdder<T>& other) {
128
29.4k
    this->_current_meta_size = other._current_meta_size;
129
29.4k
    add_num(1);
130
29.4k
    add_mem_size(this->_current_meta_size);
131
29.4k
}
_ZN5doris13MetadataAdderINS_11TabletIndexEEC2ERKS2_
Line
Count
Source
127
329
MetadataAdder<T>::MetadataAdder(const MetadataAdder<T>& other) {
128
329
    this->_current_meta_size = other._current_meta_size;
129
329
    add_num(1);
130
329
    add_mem_size(this->_current_meta_size);
131
329
}
Unexecuted instantiation: _ZN5doris13MetadataAdderINS_12TabletSchemaEEC2ERKS2_
Unexecuted instantiation: _ZN5doris13MetadataAdderINS_10TabletMetaEEC2ERKS2_
132
133
template <typename T>
134
43.8k
MetadataAdder<T>::MetadataAdder() {
135
43.8k
    this->_current_meta_size = sizeof(T);
136
43.8k
    add_mem_size(this->_current_meta_size);
137
43.8k
    add_num(1);
138
43.8k
}
_ZN5doris13MetadataAdderINS_10RowsetMetaEEC2Ev
Line
Count
Source
134
2.24k
MetadataAdder<T>::MetadataAdder() {
135
2.24k
    this->_current_meta_size = sizeof(T);
136
2.24k
    add_mem_size(this->_current_meta_size);
137
2.24k
    add_num(1);
138
2.24k
}
_ZN5doris13MetadataAdderINS_10TabletMetaEEC2Ev
Line
Count
Source
134
345
MetadataAdder<T>::MetadataAdder() {
135
345
    this->_current_meta_size = sizeof(T);
136
345
    add_mem_size(this->_current_meta_size);
137
345
    add_num(1);
138
345
}
_ZN5doris13MetadataAdderINS_10segment_v217BitmapIndexReaderEEC2Ev
Line
Count
Source
134
4
MetadataAdder<T>::MetadataAdder() {
135
4
    this->_current_meta_size = sizeof(T);
136
4
    add_mem_size(this->_current_meta_size);
137
4
    add_num(1);
138
4
}
_ZN5doris13MetadataAdderINS_10segment_v222BloomFilterIndexReaderEEC2Ev
Line
Count
Source
134
15
MetadataAdder<T>::MetadataAdder() {
135
15
    this->_current_meta_size = sizeof(T);
136
15
    add_mem_size(this->_current_meta_size);
137
15
    add_num(1);
138
15
}
_ZN5doris13MetadataAdderINS_10segment_v219InvertedIndexReaderEEC2Ev
Line
Count
Source
134
220
MetadataAdder<T>::MetadataAdder() {
135
220
    this->_current_meta_size = sizeof(T);
136
220
    add_mem_size(this->_current_meta_size);
137
220
    add_num(1);
138
220
}
_ZN5doris13MetadataAdderINS_11TabletIndexEEC2Ev
Line
Count
Source
134
68
MetadataAdder<T>::MetadataAdder() {
135
68
    this->_current_meta_size = sizeof(T);
136
68
    add_mem_size(this->_current_meta_size);
137
68
    add_num(1);
138
68
}
_ZN5doris13MetadataAdderINS_10segment_v218OrdinalIndexReaderEEC2Ev
Line
Count
Source
134
10.7k
MetadataAdder<T>::MetadataAdder() {
135
10.7k
    this->_current_meta_size = sizeof(T);
136
10.7k
    add_mem_size(this->_current_meta_size);
137
10.7k
    add_num(1);
138
10.7k
}
_ZN5doris13MetadataAdderINS_10segment_v218ZoneMapIndexReaderEEC2Ev
Line
Count
Source
134
10.3k
MetadataAdder<T>::MetadataAdder() {
135
10.3k
    this->_current_meta_size = sizeof(T);
136
10.3k
    add_mem_size(this->_current_meta_size);
137
10.3k
    add_num(1);
138
10.3k
}
_ZN5doris13MetadataAdderINS_10segment_v219IndexedColumnReaderEEC2Ev
Line
Count
Source
134
87
MetadataAdder<T>::MetadataAdder() {
135
87
    this->_current_meta_size = sizeof(T);
136
87
    add_mem_size(this->_current_meta_size);
137
87
    add_num(1);
138
87
}
_ZN5doris13MetadataAdderINS_10segment_v215IndexPageReaderEEC2Ev
Line
Count
Source
134
240
MetadataAdder<T>::MetadataAdder() {
135
240
    this->_current_meta_size = sizeof(T);
136
240
    add_mem_size(this->_current_meta_size);
137
240
    add_num(1);
138
240
}
_ZN5doris13MetadataAdderINS_10segment_v27SegmentEEC2Ev
Line
Count
Source
134
5.03k
MetadataAdder<T>::MetadataAdder() {
135
5.03k
    this->_current_meta_size = sizeof(T);
136
5.03k
    add_mem_size(this->_current_meta_size);
137
5.03k
    add_num(1);
138
5.03k
}
_ZN5doris13MetadataAdderINS_10segment_v212ColumnReaderEEC2Ev
Line
Count
Source
134
10.7k
MetadataAdder<T>::MetadataAdder() {
135
10.7k
    this->_current_meta_size = sizeof(T);
136
10.7k
    add_mem_size(this->_current_meta_size);
137
10.7k
    add_num(1);
138
10.7k
}
_ZN5doris13MetadataAdderINS_12TabletColumnEEC2Ev
Line
Count
Source
134
3.10k
MetadataAdder<T>::MetadataAdder() {
135
3.10k
    this->_current_meta_size = sizeof(T);
136
3.10k
    add_mem_size(this->_current_meta_size);
137
3.10k
    add_num(1);
138
3.10k
}
_ZN5doris13MetadataAdderINS_12TabletSchemaEEC2Ev
Line
Count
Source
134
687
MetadataAdder<T>::MetadataAdder() {
135
687
    this->_current_meta_size = sizeof(T);
136
687
    add_mem_size(this->_current_meta_size);
137
687
    add_num(1);
138
687
}
139
140
template <typename T>
141
73.6k
MetadataAdder<T>::~MetadataAdder() {
142
73.6k
    add_mem_size(-_current_meta_size);
143
73.6k
    add_num(-1);
144
73.6k
}
_ZN5doris13MetadataAdderINS_12TabletColumnEED2Ev
Line
Count
Source
141
32.5k
MetadataAdder<T>::~MetadataAdder() {
142
32.5k
    add_mem_size(-_current_meta_size);
143
32.5k
    add_num(-1);
144
32.5k
}
_ZN5doris13MetadataAdderINS_10RowsetMetaEED2Ev
Line
Count
Source
141
2.24k
MetadataAdder<T>::~MetadataAdder() {
142
2.24k
    add_mem_size(-_current_meta_size);
143
2.24k
    add_num(-1);
144
2.24k
}
_ZN5doris13MetadataAdderINS_10TabletMetaEED2Ev
Line
Count
Source
141
345
MetadataAdder<T>::~MetadataAdder() {
142
345
    add_mem_size(-_current_meta_size);
143
345
    add_num(-1);
144
345
}
_ZN5doris13MetadataAdderINS_10segment_v217BitmapIndexReaderEED2Ev
Line
Count
Source
141
4
MetadataAdder<T>::~MetadataAdder() {
142
4
    add_mem_size(-_current_meta_size);
143
4
    add_num(-1);
144
4
}
_ZN5doris13MetadataAdderINS_10segment_v222BloomFilterIndexReaderEED2Ev
Line
Count
Source
141
15
MetadataAdder<T>::~MetadataAdder() {
142
15
    add_mem_size(-_current_meta_size);
143
15
    add_num(-1);
144
15
}
_ZN5doris13MetadataAdderINS_11TabletIndexEED2Ev
Line
Count
Source
141
387
MetadataAdder<T>::~MetadataAdder() {
142
387
    add_mem_size(-_current_meta_size);
143
387
    add_num(-1);
144
387
}
_ZN5doris13MetadataAdderINS_10segment_v219InvertedIndexReaderEED2Ev
Line
Count
Source
141
220
MetadataAdder<T>::~MetadataAdder() {
142
220
    add_mem_size(-_current_meta_size);
143
220
    add_num(-1);
144
220
}
_ZN5doris13MetadataAdderINS_10segment_v218OrdinalIndexReaderEED2Ev
Line
Count
Source
141
10.7k
MetadataAdder<T>::~MetadataAdder() {
142
10.7k
    add_mem_size(-_current_meta_size);
143
10.7k
    add_num(-1);
144
10.7k
}
_ZN5doris13MetadataAdderINS_10segment_v218ZoneMapIndexReaderEED2Ev
Line
Count
Source
141
10.3k
MetadataAdder<T>::~MetadataAdder() {
142
10.3k
    add_mem_size(-_current_meta_size);
143
10.3k
    add_num(-1);
144
10.3k
}
_ZN5doris13MetadataAdderINS_10segment_v215IndexPageReaderEED2Ev
Line
Count
Source
141
240
MetadataAdder<T>::~MetadataAdder() {
142
240
    add_mem_size(-_current_meta_size);
143
240
    add_num(-1);
144
240
}
_ZN5doris13MetadataAdderINS_10segment_v219IndexedColumnReaderEED2Ev
Line
Count
Source
141
87
MetadataAdder<T>::~MetadataAdder() {
142
87
    add_mem_size(-_current_meta_size);
143
87
    add_num(-1);
144
87
}
_ZN5doris13MetadataAdderINS_10segment_v27SegmentEED2Ev
Line
Count
Source
141
5.03k
MetadataAdder<T>::~MetadataAdder() {
142
5.03k
    add_mem_size(-_current_meta_size);
143
5.03k
    add_num(-1);
144
5.03k
}
_ZN5doris13MetadataAdderINS_10segment_v212ColumnReaderEED2Ev
Line
Count
Source
141
10.7k
MetadataAdder<T>::~MetadataAdder() {
142
10.7k
    add_mem_size(-_current_meta_size);
143
10.7k
    add_num(-1);
144
10.7k
}
_ZN5doris13MetadataAdderINS_12TabletSchemaEED2Ev
Line
Count
Source
141
663
MetadataAdder<T>::~MetadataAdder() {
142
663
    add_mem_size(-_current_meta_size);
143
663
    add_num(-1);
144
663
}
145
146
template <typename T>
147
17.6k
void MetadataAdder<T>::update_metadata_size() {
148
17.6k
    int64_t old_size = _current_meta_size;
149
17.6k
    _current_meta_size = get_metadata_size();
150
17.6k
    int64_t size_diff = _current_meta_size - old_size;
151
152
17.6k
    add_mem_size(size_diff);
153
17.6k
}
_ZN5doris13MetadataAdderINS_10RowsetMetaEE20update_metadata_sizeEv
Line
Count
Source
147
933
void MetadataAdder<T>::update_metadata_size() {
148
933
    int64_t old_size = _current_meta_size;
149
933
    _current_meta_size = get_metadata_size();
150
933
    int64_t size_diff = _current_meta_size - old_size;
151
152
933
    add_mem_size(size_diff);
153
933
}
_ZN5doris13MetadataAdderINS_10segment_v222BloomFilterIndexReaderEE20update_metadata_sizeEv
Line
Count
Source
147
15
void MetadataAdder<T>::update_metadata_size() {
148
15
    int64_t old_size = _current_meta_size;
149
15
    _current_meta_size = get_metadata_size();
150
15
    int64_t size_diff = _current_meta_size - old_size;
151
152
15
    add_mem_size(size_diff);
153
15
}
_ZN5doris13MetadataAdderINS_10segment_v215IndexPageReaderEE20update_metadata_sizeEv
Line
Count
Source
147
108
void MetadataAdder<T>::update_metadata_size() {
148
108
    int64_t old_size = _current_meta_size;
149
108
    _current_meta_size = get_metadata_size();
150
108
    int64_t size_diff = _current_meta_size - old_size;
151
152
108
    add_mem_size(size_diff);
153
108
}
_ZN5doris13MetadataAdderINS_10segment_v219IndexedColumnReaderEE20update_metadata_sizeEv
Line
Count
Source
147
87
void MetadataAdder<T>::update_metadata_size() {
148
87
    int64_t old_size = _current_meta_size;
149
87
    _current_meta_size = get_metadata_size();
150
87
    int64_t size_diff = _current_meta_size - old_size;
151
152
87
    add_mem_size(size_diff);
153
87
}
_ZN5doris13MetadataAdderINS_10segment_v218OrdinalIndexReaderEE20update_metadata_sizeEv
Line
Count
Source
147
66
void MetadataAdder<T>::update_metadata_size() {
148
66
    int64_t old_size = _current_meta_size;
149
66
    _current_meta_size = get_metadata_size();
150
66
    int64_t size_diff = _current_meta_size - old_size;
151
152
66
    add_mem_size(size_diff);
153
66
}
_ZN5doris13MetadataAdderINS_10segment_v27SegmentEE20update_metadata_sizeEv
Line
Count
Source
147
5.03k
void MetadataAdder<T>::update_metadata_size() {
148
5.03k
    int64_t old_size = _current_meta_size;
149
5.03k
    _current_meta_size = get_metadata_size();
150
5.03k
    int64_t size_diff = _current_meta_size - old_size;
151
152
5.03k
    add_mem_size(size_diff);
153
5.03k
}
_ZN5doris13MetadataAdderINS_10segment_v212ColumnReaderEE20update_metadata_sizeEv
Line
Count
Source
147
10.7k
void MetadataAdder<T>::update_metadata_size() {
148
10.7k
    int64_t old_size = _current_meta_size;
149
10.7k
    _current_meta_size = get_metadata_size();
150
10.7k
    int64_t size_diff = _current_meta_size - old_size;
151
152
10.7k
    add_mem_size(size_diff);
153
10.7k
}
_ZN5doris13MetadataAdderINS_10segment_v218ZoneMapIndexReaderEE20update_metadata_sizeEv
Line
Count
Source
147
4
void MetadataAdder<T>::update_metadata_size() {
148
4
    int64_t old_size = _current_meta_size;
149
4
    _current_meta_size = get_metadata_size();
150
4
    int64_t size_diff = _current_meta_size - old_size;
151
152
4
    add_mem_size(size_diff);
153
4
}
_ZN5doris13MetadataAdderINS_12TabletSchemaEE20update_metadata_sizeEv
Line
Count
Source
147
616
void MetadataAdder<T>::update_metadata_size() {
148
616
    int64_t old_size = _current_meta_size;
149
616
    _current_meta_size = get_metadata_size();
150
616
    int64_t size_diff = _current_meta_size - old_size;
151
152
616
    add_mem_size(size_diff);
153
616
}
154
155
template <typename T>
156
164k
void MetadataAdder<T>::add_mem_size(int64_t val) {
157
164k
    if (val == 0) {
158
479
        return;
159
479
    }
160
164k
    if constexpr (std::is_same_v<T, RowsetMeta>) {
161
159k
        g_rowset_meta_mem_bytes << val;
162
159k
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
163
158k
        g_tablet_meta_mem_bytes << val;
164
158k
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
165
93.2k
        g_tablet_column_mem_bytes << val;
166
93.2k
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
167
92.4k
        g_tablet_index_mem_bytes << val;
168
92.4k
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
169
90.5k
        g_tablet_schema_mem_bytes << val;
170
90.5k
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
171
75.4k
        g_segment_mem_bytes << val;
172
75.4k
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
173
43.5k
        g_column_reader_mem_bytes << val;
174
43.5k
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
175
43.5k
        g_bitmap_index_reader_mem_bytes << val;
176
43.5k
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
177
43.5k
        g_bloom_filter_index_reader_mem_bytes << val;
178
43.5k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
179
42.9k
        g_index_page_reader_mem_bytes << val;
180
42.9k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
181
42.6k
        g_indexed_column_reader_mem_bytes << val;
182
42.6k
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
183
42.2k
        g_inverted_index_reader_mem_bytes << val;
184
42.2k
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
185
20.6k
        g_ordinal_index_reader_mem_bytes << val;
186
20.6k
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
187
20.6k
        g_zone_map_index_reader_mem_bytes << val;
188
20.6k
    }
189
164k
}
_ZN5doris13MetadataAdderINS_10segment_v215IndexPageReaderEE12add_mem_sizeEl
Line
Count
Source
156
588
void MetadataAdder<T>::add_mem_size(int64_t val) {
157
588
    if (val == 0) {
158
0
        return;
159
0
    }
160
588
    if constexpr (std::is_same_v<T, RowsetMeta>) {
161
588
        g_rowset_meta_mem_bytes << val;
162
588
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
163
588
        g_tablet_meta_mem_bytes << val;
164
588
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
165
588
        g_tablet_column_mem_bytes << val;
166
588
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
167
588
        g_tablet_index_mem_bytes << val;
168
588
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
169
588
        g_tablet_schema_mem_bytes << val;
170
588
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
171
588
        g_segment_mem_bytes << val;
172
588
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
173
588
        g_column_reader_mem_bytes << val;
174
588
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
175
588
        g_bitmap_index_reader_mem_bytes << val;
176
588
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
177
588
        g_bloom_filter_index_reader_mem_bytes << val;
178
588
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
179
588
        g_index_page_reader_mem_bytes << val;
180
588
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
181
588
        g_indexed_column_reader_mem_bytes << val;
182
588
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
183
588
        g_inverted_index_reader_mem_bytes << val;
184
588
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
185
588
        g_ordinal_index_reader_mem_bytes << val;
186
588
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
187
588
        g_zone_map_index_reader_mem_bytes << val;
188
588
    }
189
588
}
_ZN5doris13MetadataAdderINS_10segment_v219IndexedColumnReaderEE12add_mem_sizeEl
Line
Count
Source
156
261
void MetadataAdder<T>::add_mem_size(int64_t val) {
157
261
    if (val == 0) {
158
0
        return;
159
0
    }
160
261
    if constexpr (std::is_same_v<T, RowsetMeta>) {
161
261
        g_rowset_meta_mem_bytes << val;
162
261
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
163
261
        g_tablet_meta_mem_bytes << val;
164
261
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
165
261
        g_tablet_column_mem_bytes << val;
166
261
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
167
261
        g_tablet_index_mem_bytes << val;
168
261
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
169
261
        g_tablet_schema_mem_bytes << val;
170
261
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
171
261
        g_segment_mem_bytes << val;
172
261
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
173
261
        g_column_reader_mem_bytes << val;
174
261
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
175
261
        g_bitmap_index_reader_mem_bytes << val;
176
261
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
177
261
        g_bloom_filter_index_reader_mem_bytes << val;
178
261
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
179
261
        g_index_page_reader_mem_bytes << val;
180
261
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
181
261
        g_indexed_column_reader_mem_bytes << val;
182
261
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
183
261
        g_inverted_index_reader_mem_bytes << val;
184
261
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
185
261
        g_ordinal_index_reader_mem_bytes << val;
186
261
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
187
261
        g_zone_map_index_reader_mem_bytes << val;
188
261
    }
189
261
}
_ZN5doris13MetadataAdderINS_10segment_v217BitmapIndexReaderEE12add_mem_sizeEl
Line
Count
Source
156
8
void MetadataAdder<T>::add_mem_size(int64_t val) {
157
8
    if (val == 0) {
158
0
        return;
159
0
    }
160
8
    if constexpr (std::is_same_v<T, RowsetMeta>) {
161
8
        g_rowset_meta_mem_bytes << val;
162
8
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
163
8
        g_tablet_meta_mem_bytes << val;
164
8
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
165
8
        g_tablet_column_mem_bytes << val;
166
8
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
167
8
        g_tablet_index_mem_bytes << val;
168
8
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
169
8
        g_tablet_schema_mem_bytes << val;
170
8
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
171
8
        g_segment_mem_bytes << val;
172
8
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
173
8
        g_column_reader_mem_bytes << val;
174
8
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
175
8
        g_bitmap_index_reader_mem_bytes << val;
176
8
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
177
8
        g_bloom_filter_index_reader_mem_bytes << val;
178
8
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
179
8
        g_index_page_reader_mem_bytes << val;
180
8
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
181
8
        g_indexed_column_reader_mem_bytes << val;
182
8
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
183
8
        g_inverted_index_reader_mem_bytes << val;
184
8
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
185
8
        g_ordinal_index_reader_mem_bytes << val;
186
8
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
187
8
        g_zone_map_index_reader_mem_bytes << val;
188
8
    }
189
8
}
_ZN5doris13MetadataAdderINS_11TabletIndexEE12add_mem_sizeEl
Line
Count
Source
156
784
void MetadataAdder<T>::add_mem_size(int64_t val) {
157
784
    if (val == 0) {
158
0
        return;
159
0
    }
160
784
    if constexpr (std::is_same_v<T, RowsetMeta>) {
161
784
        g_rowset_meta_mem_bytes << val;
162
784
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
163
784
        g_tablet_meta_mem_bytes << val;
164
784
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
165
784
        g_tablet_column_mem_bytes << val;
166
784
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
167
784
        g_tablet_index_mem_bytes << val;
168
784
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
169
784
        g_tablet_schema_mem_bytes << val;
170
784
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
171
784
        g_segment_mem_bytes << val;
172
784
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
173
784
        g_column_reader_mem_bytes << val;
174
784
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
175
784
        g_bitmap_index_reader_mem_bytes << val;
176
784
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
177
784
        g_bloom_filter_index_reader_mem_bytes << val;
178
784
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
179
784
        g_index_page_reader_mem_bytes << val;
180
784
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
181
784
        g_indexed_column_reader_mem_bytes << val;
182
784
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
183
784
        g_inverted_index_reader_mem_bytes << val;
184
784
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
185
784
        g_ordinal_index_reader_mem_bytes << val;
186
784
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
187
784
        g_zone_map_index_reader_mem_bytes << val;
188
784
    }
189
784
}
_ZN5doris13MetadataAdderINS_10segment_v219InvertedIndexReaderEE12add_mem_sizeEl
Line
Count
Source
156
440
void MetadataAdder<T>::add_mem_size(int64_t val) {
157
440
    if (val == 0) {
158
0
        return;
159
0
    }
160
440
    if constexpr (std::is_same_v<T, RowsetMeta>) {
161
440
        g_rowset_meta_mem_bytes << val;
162
440
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
163
440
        g_tablet_meta_mem_bytes << val;
164
440
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
165
440
        g_tablet_column_mem_bytes << val;
166
440
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
167
440
        g_tablet_index_mem_bytes << val;
168
440
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
169
440
        g_tablet_schema_mem_bytes << val;
170
440
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
171
440
        g_segment_mem_bytes << val;
172
440
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
173
440
        g_column_reader_mem_bytes << val;
174
440
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
175
440
        g_bitmap_index_reader_mem_bytes << val;
176
440
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
177
440
        g_bloom_filter_index_reader_mem_bytes << val;
178
440
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
179
440
        g_index_page_reader_mem_bytes << val;
180
440
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
181
440
        g_indexed_column_reader_mem_bytes << val;
182
440
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
183
440
        g_inverted_index_reader_mem_bytes << val;
184
440
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
185
440
        g_ordinal_index_reader_mem_bytes << val;
186
440
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
187
440
        g_zone_map_index_reader_mem_bytes << val;
188
440
    }
189
440
}
_ZN5doris13MetadataAdderINS_12TabletColumnEE12add_mem_sizeEl
Line
Count
Source
156
65.1k
void MetadataAdder<T>::add_mem_size(int64_t val) {
157
65.1k
    if (val == 0) {
158
0
        return;
159
0
    }
160
65.1k
    if constexpr (std::is_same_v<T, RowsetMeta>) {
161
65.1k
        g_rowset_meta_mem_bytes << val;
162
65.1k
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
163
65.1k
        g_tablet_meta_mem_bytes << val;
164
65.1k
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
165
65.1k
        g_tablet_column_mem_bytes << val;
166
65.1k
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
167
65.1k
        g_tablet_index_mem_bytes << val;
168
65.1k
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
169
65.1k
        g_tablet_schema_mem_bytes << val;
170
65.1k
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
171
65.1k
        g_segment_mem_bytes << val;
172
65.1k
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
173
65.1k
        g_column_reader_mem_bytes << val;
174
65.1k
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
175
65.1k
        g_bitmap_index_reader_mem_bytes << val;
176
65.1k
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
177
65.1k
        g_bloom_filter_index_reader_mem_bytes << val;
178
65.1k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
179
65.1k
        g_index_page_reader_mem_bytes << val;
180
65.1k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
181
65.1k
        g_indexed_column_reader_mem_bytes << val;
182
65.1k
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
183
65.1k
        g_inverted_index_reader_mem_bytes << val;
184
65.1k
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
185
65.1k
        g_ordinal_index_reader_mem_bytes << val;
186
65.1k
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
187
65.1k
        g_zone_map_index_reader_mem_bytes << val;
188
65.1k
    }
189
65.1k
}
_ZN5doris13MetadataAdderINS_10segment_v218OrdinalIndexReaderEE12add_mem_sizeEl
Line
Count
Source
156
21.5k
void MetadataAdder<T>::add_mem_size(int64_t val) {
157
21.5k
    if (val == 0) {
158
0
        return;
159
0
    }
160
21.5k
    if constexpr (std::is_same_v<T, RowsetMeta>) {
161
21.5k
        g_rowset_meta_mem_bytes << val;
162
21.5k
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
163
21.5k
        g_tablet_meta_mem_bytes << val;
164
21.5k
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
165
21.5k
        g_tablet_column_mem_bytes << val;
166
21.5k
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
167
21.5k
        g_tablet_index_mem_bytes << val;
168
21.5k
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
169
21.5k
        g_tablet_schema_mem_bytes << val;
170
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
171
21.5k
        g_segment_mem_bytes << val;
172
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
173
21.5k
        g_column_reader_mem_bytes << val;
174
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
175
21.5k
        g_bitmap_index_reader_mem_bytes << val;
176
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
177
21.5k
        g_bloom_filter_index_reader_mem_bytes << val;
178
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
179
21.5k
        g_index_page_reader_mem_bytes << val;
180
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
181
21.5k
        g_indexed_column_reader_mem_bytes << val;
182
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
183
21.5k
        g_inverted_index_reader_mem_bytes << val;
184
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
185
21.5k
        g_ordinal_index_reader_mem_bytes << val;
186
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
187
21.5k
        g_zone_map_index_reader_mem_bytes << val;
188
21.5k
    }
189
21.5k
}
_ZN5doris13MetadataAdderINS_10TabletMetaEE12add_mem_sizeEl
Line
Count
Source
156
690
void MetadataAdder<T>::add_mem_size(int64_t val) {
157
690
    if (val == 0) {
158
0
        return;
159
0
    }
160
690
    if constexpr (std::is_same_v<T, RowsetMeta>) {
161
690
        g_rowset_meta_mem_bytes << val;
162
690
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
163
690
        g_tablet_meta_mem_bytes << val;
164
690
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
165
690
        g_tablet_column_mem_bytes << val;
166
690
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
167
690
        g_tablet_index_mem_bytes << val;
168
690
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
169
690
        g_tablet_schema_mem_bytes << val;
170
690
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
171
690
        g_segment_mem_bytes << val;
172
690
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
173
690
        g_column_reader_mem_bytes << val;
174
690
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
175
690
        g_bitmap_index_reader_mem_bytes << val;
176
690
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
177
690
        g_bloom_filter_index_reader_mem_bytes << val;
178
690
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
179
690
        g_index_page_reader_mem_bytes << val;
180
690
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
181
690
        g_indexed_column_reader_mem_bytes << val;
182
690
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
183
690
        g_inverted_index_reader_mem_bytes << val;
184
690
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
185
690
        g_ordinal_index_reader_mem_bytes << val;
186
690
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
187
690
        g_zone_map_index_reader_mem_bytes << val;
188
690
    }
189
690
}
_ZN5doris13MetadataAdderINS_10RowsetMetaEE12add_mem_sizeEl
Line
Count
Source
156
5.41k
void MetadataAdder<T>::add_mem_size(int64_t val) {
157
5.41k
    if (val == 0) {
158
0
        return;
159
0
    }
160
5.41k
    if constexpr (std::is_same_v<T, RowsetMeta>) {
161
5.41k
        g_rowset_meta_mem_bytes << val;
162
5.41k
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
163
5.41k
        g_tablet_meta_mem_bytes << val;
164
5.41k
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
165
5.41k
        g_tablet_column_mem_bytes << val;
166
5.41k
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
167
5.41k
        g_tablet_index_mem_bytes << val;
168
5.41k
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
169
5.41k
        g_tablet_schema_mem_bytes << val;
170
5.41k
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
171
5.41k
        g_segment_mem_bytes << val;
172
5.41k
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
173
5.41k
        g_column_reader_mem_bytes << val;
174
5.41k
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
175
5.41k
        g_bitmap_index_reader_mem_bytes << val;
176
5.41k
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
177
5.41k
        g_bloom_filter_index_reader_mem_bytes << val;
178
5.41k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
179
5.41k
        g_index_page_reader_mem_bytes << val;
180
5.41k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
181
5.41k
        g_indexed_column_reader_mem_bytes << val;
182
5.41k
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
183
5.41k
        g_inverted_index_reader_mem_bytes << val;
184
5.41k
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
185
5.41k
        g_ordinal_index_reader_mem_bytes << val;
186
5.41k
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
187
5.41k
        g_zone_map_index_reader_mem_bytes << val;
188
5.41k
    }
189
5.41k
}
_ZN5doris13MetadataAdderINS_10segment_v222BloomFilterIndexReaderEE12add_mem_sizeEl
Line
Count
Source
156
45
void MetadataAdder<T>::add_mem_size(int64_t val) {
157
45
    if (val == 0) {
158
0
        return;
159
0
    }
160
45
    if constexpr (std::is_same_v<T, RowsetMeta>) {
161
45
        g_rowset_meta_mem_bytes << val;
162
45
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
163
45
        g_tablet_meta_mem_bytes << val;
164
45
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
165
45
        g_tablet_column_mem_bytes << val;
166
45
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
167
45
        g_tablet_index_mem_bytes << val;
168
45
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
169
45
        g_tablet_schema_mem_bytes << val;
170
45
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
171
45
        g_segment_mem_bytes << val;
172
45
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
173
45
        g_column_reader_mem_bytes << val;
174
45
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
175
45
        g_bitmap_index_reader_mem_bytes << val;
176
45
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
177
45
        g_bloom_filter_index_reader_mem_bytes << val;
178
45
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
179
45
        g_index_page_reader_mem_bytes << val;
180
45
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
181
45
        g_indexed_column_reader_mem_bytes << val;
182
45
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
183
45
        g_inverted_index_reader_mem_bytes << val;
184
45
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
185
45
        g_ordinal_index_reader_mem_bytes << val;
186
45
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
187
45
        g_zone_map_index_reader_mem_bytes << val;
188
45
    }
189
45
}
_ZN5doris13MetadataAdderINS_10segment_v218ZoneMapIndexReaderEE12add_mem_sizeEl
Line
Count
Source
156
20.6k
void MetadataAdder<T>::add_mem_size(int64_t val) {
157
20.6k
    if (val == 0) {
158
0
        return;
159
0
    }
160
20.6k
    if constexpr (std::is_same_v<T, RowsetMeta>) {
161
20.6k
        g_rowset_meta_mem_bytes << val;
162
20.6k
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
163
20.6k
        g_tablet_meta_mem_bytes << val;
164
20.6k
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
165
20.6k
        g_tablet_column_mem_bytes << val;
166
20.6k
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
167
20.6k
        g_tablet_index_mem_bytes << val;
168
20.6k
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
169
20.6k
        g_tablet_schema_mem_bytes << val;
170
20.6k
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
171
20.6k
        g_segment_mem_bytes << val;
172
20.6k
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
173
20.6k
        g_column_reader_mem_bytes << val;
174
20.6k
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
175
20.6k
        g_bitmap_index_reader_mem_bytes << val;
176
20.6k
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
177
20.6k
        g_bloom_filter_index_reader_mem_bytes << val;
178
20.6k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
179
20.6k
        g_index_page_reader_mem_bytes << val;
180
20.6k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
181
20.6k
        g_indexed_column_reader_mem_bytes << val;
182
20.6k
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
183
20.6k
        g_inverted_index_reader_mem_bytes << val;
184
20.6k
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
185
20.6k
        g_ordinal_index_reader_mem_bytes << val;
186
20.6k
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
187
20.6k
        g_zone_map_index_reader_mem_bytes << val;
188
20.6k
    }
189
20.6k
}
_ZN5doris13MetadataAdderINS_10segment_v27SegmentEE12add_mem_sizeEl
Line
Count
Source
156
15.1k
void MetadataAdder<T>::add_mem_size(int64_t val) {
157
15.1k
    if (val == 0) {
158
0
        return;
159
0
    }
160
15.1k
    if constexpr (std::is_same_v<T, RowsetMeta>) {
161
15.1k
        g_rowset_meta_mem_bytes << val;
162
15.1k
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
163
15.1k
        g_tablet_meta_mem_bytes << val;
164
15.1k
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
165
15.1k
        g_tablet_column_mem_bytes << val;
166
15.1k
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
167
15.1k
        g_tablet_index_mem_bytes << val;
168
15.1k
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
169
15.1k
        g_tablet_schema_mem_bytes << val;
170
15.1k
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
171
15.1k
        g_segment_mem_bytes << val;
172
15.1k
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
173
15.1k
        g_column_reader_mem_bytes << val;
174
15.1k
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
175
15.1k
        g_bitmap_index_reader_mem_bytes << val;
176
15.1k
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
177
15.1k
        g_bloom_filter_index_reader_mem_bytes << val;
178
15.1k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
179
15.1k
        g_index_page_reader_mem_bytes << val;
180
15.1k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
181
15.1k
        g_indexed_column_reader_mem_bytes << val;
182
15.1k
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
183
15.1k
        g_inverted_index_reader_mem_bytes << val;
184
15.1k
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
185
15.1k
        g_ordinal_index_reader_mem_bytes << val;
186
15.1k
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
187
15.1k
        g_zone_map_index_reader_mem_bytes << val;
188
15.1k
    }
189
15.1k
}
_ZN5doris13MetadataAdderINS_10segment_v212ColumnReaderEE12add_mem_sizeEl
Line
Count
Source
156
32.2k
void MetadataAdder<T>::add_mem_size(int64_t val) {
157
32.2k
    if (val == 0) {
158
429
        return;
159
429
    }
160
31.8k
    if constexpr (std::is_same_v<T, RowsetMeta>) {
161
31.8k
        g_rowset_meta_mem_bytes << val;
162
31.8k
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
163
31.8k
        g_tablet_meta_mem_bytes << val;
164
31.8k
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
165
31.8k
        g_tablet_column_mem_bytes << val;
166
31.8k
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
167
31.8k
        g_tablet_index_mem_bytes << val;
168
31.8k
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
169
31.8k
        g_tablet_schema_mem_bytes << val;
170
31.8k
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
171
31.8k
        g_segment_mem_bytes << val;
172
31.8k
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
173
31.8k
        g_column_reader_mem_bytes << val;
174
31.8k
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
175
31.8k
        g_bitmap_index_reader_mem_bytes << val;
176
31.8k
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
177
31.8k
        g_bloom_filter_index_reader_mem_bytes << val;
178
31.8k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
179
31.8k
        g_index_page_reader_mem_bytes << val;
180
31.8k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
181
31.8k
        g_indexed_column_reader_mem_bytes << val;
182
31.8k
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
183
31.8k
        g_inverted_index_reader_mem_bytes << val;
184
31.8k
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
185
31.8k
        g_ordinal_index_reader_mem_bytes << val;
186
31.8k
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
187
31.8k
        g_zone_map_index_reader_mem_bytes << val;
188
31.8k
    }
189
31.8k
}
_ZN5doris13MetadataAdderINS_12TabletSchemaEE12add_mem_sizeEl
Line
Count
Source
156
1.96k
void MetadataAdder<T>::add_mem_size(int64_t val) {
157
1.96k
    if (val == 0) {
158
50
        return;
159
50
    }
160
1.91k
    if constexpr (std::is_same_v<T, RowsetMeta>) {
161
1.91k
        g_rowset_meta_mem_bytes << val;
162
1.91k
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
163
1.91k
        g_tablet_meta_mem_bytes << val;
164
1.91k
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
165
1.91k
        g_tablet_column_mem_bytes << val;
166
1.91k
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
167
1.91k
        g_tablet_index_mem_bytes << val;
168
1.91k
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
169
1.91k
        g_tablet_schema_mem_bytes << val;
170
1.91k
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
171
1.91k
        g_segment_mem_bytes << val;
172
1.91k
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
173
1.91k
        g_column_reader_mem_bytes << val;
174
1.91k
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
175
1.91k
        g_bitmap_index_reader_mem_bytes << val;
176
1.91k
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
177
1.91k
        g_bloom_filter_index_reader_mem_bytes << val;
178
1.91k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
179
1.91k
        g_index_page_reader_mem_bytes << val;
180
1.91k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
181
1.91k
        g_indexed_column_reader_mem_bytes << val;
182
1.91k
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
183
1.91k
        g_inverted_index_reader_mem_bytes << val;
184
1.91k
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
185
1.91k
        g_ordinal_index_reader_mem_bytes << val;
186
1.91k
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
187
1.91k
        g_zone_map_index_reader_mem_bytes << val;
188
1.91k
    }
189
1.91k
}
190
191
template <typename T>
192
147k
void MetadataAdder<T>::add_num(int64_t val) {
193
147k
    if (val == 0) {
194
0
        return;
195
0
    }
196
147k
    if constexpr (std::is_same_v<T, RowsetMeta>) {
197
142k
        g_rowset_meta_num << val;
198
142k
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
199
142k
        g_tablet_meta_num << val;
200
142k
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
201
77.0k
        g_tablet_column_num << val;
202
77.0k
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
203
76.2k
        g_tablet_index_num << val;
204
76.2k
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
205
74.8k
        g_tablet_schema_num << val;
206
74.8k
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
207
64.8k
        g_segment_num << val;
208
64.8k
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
209
43.2k
        g_column_reader_num << val;
210
43.2k
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
211
43.2k
        g_bitmap_index_reader_num << val;
212
43.2k
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
213
43.2k
        g_bloom_filter_index_reader_num << val;
214
43.2k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
215
42.7k
        g_index_page_reader_num << val;
216
42.7k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
217
42.6k
        g_indexed_column_reader_num << val;
218
42.6k
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
219
42.1k
        g_inverted_index_reader_num << val;
220
42.1k
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
221
20.6k
        g_ordinal_index_reader_num << val;
222
20.6k
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
223
20.6k
        g_zone_map_index_reader_num << val;
224
20.6k
    }
225
147k
}
_ZN5doris13MetadataAdderINS_10segment_v215IndexPageReaderEE7add_numEl
Line
Count
Source
192
480
void MetadataAdder<T>::add_num(int64_t val) {
193
480
    if (val == 0) {
194
0
        return;
195
0
    }
196
480
    if constexpr (std::is_same_v<T, RowsetMeta>) {
197
480
        g_rowset_meta_num << val;
198
480
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
199
480
        g_tablet_meta_num << val;
200
480
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
201
480
        g_tablet_column_num << val;
202
480
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
203
480
        g_tablet_index_num << val;
204
480
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
205
480
        g_tablet_schema_num << val;
206
480
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
207
480
        g_segment_num << val;
208
480
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
209
480
        g_column_reader_num << val;
210
480
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
211
480
        g_bitmap_index_reader_num << val;
212
480
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
213
480
        g_bloom_filter_index_reader_num << val;
214
480
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
215
480
        g_index_page_reader_num << val;
216
480
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
217
480
        g_indexed_column_reader_num << val;
218
480
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
219
480
        g_inverted_index_reader_num << val;
220
480
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
221
480
        g_ordinal_index_reader_num << val;
222
480
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
223
480
        g_zone_map_index_reader_num << val;
224
480
    }
225
480
}
_ZN5doris13MetadataAdderINS_10segment_v219IndexedColumnReaderEE7add_numEl
Line
Count
Source
192
174
void MetadataAdder<T>::add_num(int64_t val) {
193
174
    if (val == 0) {
194
0
        return;
195
0
    }
196
174
    if constexpr (std::is_same_v<T, RowsetMeta>) {
197
174
        g_rowset_meta_num << val;
198
174
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
199
174
        g_tablet_meta_num << val;
200
174
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
201
174
        g_tablet_column_num << val;
202
174
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
203
174
        g_tablet_index_num << val;
204
174
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
205
174
        g_tablet_schema_num << val;
206
174
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
207
174
        g_segment_num << val;
208
174
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
209
174
        g_column_reader_num << val;
210
174
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
211
174
        g_bitmap_index_reader_num << val;
212
174
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
213
174
        g_bloom_filter_index_reader_num << val;
214
174
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
215
174
        g_index_page_reader_num << val;
216
174
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
217
174
        g_indexed_column_reader_num << val;
218
174
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
219
174
        g_inverted_index_reader_num << val;
220
174
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
221
174
        g_ordinal_index_reader_num << val;
222
174
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
223
174
        g_zone_map_index_reader_num << val;
224
174
    }
225
174
}
_ZN5doris13MetadataAdderINS_10segment_v217BitmapIndexReaderEE7add_numEl
Line
Count
Source
192
8
void MetadataAdder<T>::add_num(int64_t val) {
193
8
    if (val == 0) {
194
0
        return;
195
0
    }
196
8
    if constexpr (std::is_same_v<T, RowsetMeta>) {
197
8
        g_rowset_meta_num << val;
198
8
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
199
8
        g_tablet_meta_num << val;
200
8
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
201
8
        g_tablet_column_num << val;
202
8
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
203
8
        g_tablet_index_num << val;
204
8
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
205
8
        g_tablet_schema_num << val;
206
8
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
207
8
        g_segment_num << val;
208
8
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
209
8
        g_column_reader_num << val;
210
8
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
211
8
        g_bitmap_index_reader_num << val;
212
8
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
213
8
        g_bloom_filter_index_reader_num << val;
214
8
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
215
8
        g_index_page_reader_num << val;
216
8
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
217
8
        g_indexed_column_reader_num << val;
218
8
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
219
8
        g_inverted_index_reader_num << val;
220
8
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
221
8
        g_ordinal_index_reader_num << val;
222
8
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
223
8
        g_zone_map_index_reader_num << val;
224
8
    }
225
8
}
_ZN5doris13MetadataAdderINS_11TabletIndexEE7add_numEl
Line
Count
Source
192
784
void MetadataAdder<T>::add_num(int64_t val) {
193
784
    if (val == 0) {
194
0
        return;
195
0
    }
196
784
    if constexpr (std::is_same_v<T, RowsetMeta>) {
197
784
        g_rowset_meta_num << val;
198
784
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
199
784
        g_tablet_meta_num << val;
200
784
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
201
784
        g_tablet_column_num << val;
202
784
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
203
784
        g_tablet_index_num << val;
204
784
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
205
784
        g_tablet_schema_num << val;
206
784
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
207
784
        g_segment_num << val;
208
784
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
209
784
        g_column_reader_num << val;
210
784
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
211
784
        g_bitmap_index_reader_num << val;
212
784
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
213
784
        g_bloom_filter_index_reader_num << val;
214
784
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
215
784
        g_index_page_reader_num << val;
216
784
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
217
784
        g_indexed_column_reader_num << val;
218
784
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
219
784
        g_inverted_index_reader_num << val;
220
784
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
221
784
        g_ordinal_index_reader_num << val;
222
784
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
223
784
        g_zone_map_index_reader_num << val;
224
784
    }
225
784
}
_ZN5doris13MetadataAdderINS_10segment_v219InvertedIndexReaderEE7add_numEl
Line
Count
Source
192
440
void MetadataAdder<T>::add_num(int64_t val) {
193
440
    if (val == 0) {
194
0
        return;
195
0
    }
196
440
    if constexpr (std::is_same_v<T, RowsetMeta>) {
197
440
        g_rowset_meta_num << val;
198
440
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
199
440
        g_tablet_meta_num << val;
200
440
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
201
440
        g_tablet_column_num << val;
202
440
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
203
440
        g_tablet_index_num << val;
204
440
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
205
440
        g_tablet_schema_num << val;
206
440
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
207
440
        g_segment_num << val;
208
440
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
209
440
        g_column_reader_num << val;
210
440
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
211
440
        g_bitmap_index_reader_num << val;
212
440
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
213
440
        g_bloom_filter_index_reader_num << val;
214
440
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
215
440
        g_index_page_reader_num << val;
216
440
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
217
440
        g_indexed_column_reader_num << val;
218
440
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
219
440
        g_inverted_index_reader_num << val;
220
440
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
221
440
        g_ordinal_index_reader_num << val;
222
440
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
223
440
        g_zone_map_index_reader_num << val;
224
440
    }
225
440
}
_ZN5doris13MetadataAdderINS_12TabletColumnEE7add_numEl
Line
Count
Source
192
65.1k
void MetadataAdder<T>::add_num(int64_t val) {
193
65.1k
    if (val == 0) {
194
0
        return;
195
0
    }
196
65.1k
    if constexpr (std::is_same_v<T, RowsetMeta>) {
197
65.1k
        g_rowset_meta_num << val;
198
65.1k
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
199
65.1k
        g_tablet_meta_num << val;
200
65.1k
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
201
65.1k
        g_tablet_column_num << val;
202
65.1k
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
203
65.1k
        g_tablet_index_num << val;
204
65.1k
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
205
65.1k
        g_tablet_schema_num << val;
206
65.1k
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
207
65.1k
        g_segment_num << val;
208
65.1k
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
209
65.1k
        g_column_reader_num << val;
210
65.1k
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
211
65.1k
        g_bitmap_index_reader_num << val;
212
65.1k
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
213
65.1k
        g_bloom_filter_index_reader_num << val;
214
65.1k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
215
65.1k
        g_index_page_reader_num << val;
216
65.1k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
217
65.1k
        g_indexed_column_reader_num << val;
218
65.1k
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
219
65.1k
        g_inverted_index_reader_num << val;
220
65.1k
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
221
65.1k
        g_ordinal_index_reader_num << val;
222
65.1k
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
223
65.1k
        g_zone_map_index_reader_num << val;
224
65.1k
    }
225
65.1k
}
_ZN5doris13MetadataAdderINS_10segment_v218OrdinalIndexReaderEE7add_numEl
Line
Count
Source
192
21.5k
void MetadataAdder<T>::add_num(int64_t val) {
193
21.5k
    if (val == 0) {
194
0
        return;
195
0
    }
196
21.5k
    if constexpr (std::is_same_v<T, RowsetMeta>) {
197
21.5k
        g_rowset_meta_num << val;
198
21.5k
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
199
21.5k
        g_tablet_meta_num << val;
200
21.5k
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
201
21.5k
        g_tablet_column_num << val;
202
21.5k
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
203
21.5k
        g_tablet_index_num << val;
204
21.5k
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
205
21.5k
        g_tablet_schema_num << val;
206
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
207
21.5k
        g_segment_num << val;
208
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
209
21.5k
        g_column_reader_num << val;
210
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
211
21.5k
        g_bitmap_index_reader_num << val;
212
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
213
21.5k
        g_bloom_filter_index_reader_num << val;
214
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
215
21.5k
        g_index_page_reader_num << val;
216
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
217
21.5k
        g_indexed_column_reader_num << val;
218
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
219
21.5k
        g_inverted_index_reader_num << val;
220
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
221
21.5k
        g_ordinal_index_reader_num << val;
222
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
223
21.5k
        g_zone_map_index_reader_num << val;
224
21.5k
    }
225
21.5k
}
_ZN5doris13MetadataAdderINS_10TabletMetaEE7add_numEl
Line
Count
Source
192
690
void MetadataAdder<T>::add_num(int64_t val) {
193
690
    if (val == 0) {
194
0
        return;
195
0
    }
196
690
    if constexpr (std::is_same_v<T, RowsetMeta>) {
197
690
        g_rowset_meta_num << val;
198
690
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
199
690
        g_tablet_meta_num << val;
200
690
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
201
690
        g_tablet_column_num << val;
202
690
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
203
690
        g_tablet_index_num << val;
204
690
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
205
690
        g_tablet_schema_num << val;
206
690
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
207
690
        g_segment_num << val;
208
690
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
209
690
        g_column_reader_num << val;
210
690
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
211
690
        g_bitmap_index_reader_num << val;
212
690
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
213
690
        g_bloom_filter_index_reader_num << val;
214
690
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
215
690
        g_index_page_reader_num << val;
216
690
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
217
690
        g_indexed_column_reader_num << val;
218
690
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
219
690
        g_inverted_index_reader_num << val;
220
690
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
221
690
        g_ordinal_index_reader_num << val;
222
690
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
223
690
        g_zone_map_index_reader_num << val;
224
690
    }
225
690
}
_ZN5doris13MetadataAdderINS_10RowsetMetaEE7add_numEl
Line
Count
Source
192
4.48k
void MetadataAdder<T>::add_num(int64_t val) {
193
4.48k
    if (val == 0) {
194
0
        return;
195
0
    }
196
4.48k
    if constexpr (std::is_same_v<T, RowsetMeta>) {
197
4.48k
        g_rowset_meta_num << val;
198
4.48k
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
199
4.48k
        g_tablet_meta_num << val;
200
4.48k
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
201
4.48k
        g_tablet_column_num << val;
202
4.48k
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
203
4.48k
        g_tablet_index_num << val;
204
4.48k
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
205
4.48k
        g_tablet_schema_num << val;
206
4.48k
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
207
4.48k
        g_segment_num << val;
208
4.48k
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
209
4.48k
        g_column_reader_num << val;
210
4.48k
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
211
4.48k
        g_bitmap_index_reader_num << val;
212
4.48k
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
213
4.48k
        g_bloom_filter_index_reader_num << val;
214
4.48k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
215
4.48k
        g_index_page_reader_num << val;
216
4.48k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
217
4.48k
        g_indexed_column_reader_num << val;
218
4.48k
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
219
4.48k
        g_inverted_index_reader_num << val;
220
4.48k
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
221
4.48k
        g_ordinal_index_reader_num << val;
222
4.48k
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
223
4.48k
        g_zone_map_index_reader_num << val;
224
4.48k
    }
225
4.48k
}
_ZN5doris13MetadataAdderINS_10segment_v222BloomFilterIndexReaderEE7add_numEl
Line
Count
Source
192
30
void MetadataAdder<T>::add_num(int64_t val) {
193
30
    if (val == 0) {
194
0
        return;
195
0
    }
196
30
    if constexpr (std::is_same_v<T, RowsetMeta>) {
197
30
        g_rowset_meta_num << val;
198
30
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
199
30
        g_tablet_meta_num << val;
200
30
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
201
30
        g_tablet_column_num << val;
202
30
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
203
30
        g_tablet_index_num << val;
204
30
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
205
30
        g_tablet_schema_num << val;
206
30
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
207
30
        g_segment_num << val;
208
30
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
209
30
        g_column_reader_num << val;
210
30
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
211
30
        g_bitmap_index_reader_num << val;
212
30
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
213
30
        g_bloom_filter_index_reader_num << val;
214
30
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
215
30
        g_index_page_reader_num << val;
216
30
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
217
30
        g_indexed_column_reader_num << val;
218
30
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
219
30
        g_inverted_index_reader_num << val;
220
30
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
221
30
        g_ordinal_index_reader_num << val;
222
30
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
223
30
        g_zone_map_index_reader_num << val;
224
30
    }
225
30
}
_ZN5doris13MetadataAdderINS_10segment_v218ZoneMapIndexReaderEE7add_numEl
Line
Count
Source
192
20.6k
void MetadataAdder<T>::add_num(int64_t val) {
193
20.6k
    if (val == 0) {
194
0
        return;
195
0
    }
196
20.6k
    if constexpr (std::is_same_v<T, RowsetMeta>) {
197
20.6k
        g_rowset_meta_num << val;
198
20.6k
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
199
20.6k
        g_tablet_meta_num << val;
200
20.6k
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
201
20.6k
        g_tablet_column_num << val;
202
20.6k
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
203
20.6k
        g_tablet_index_num << val;
204
20.6k
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
205
20.6k
        g_tablet_schema_num << val;
206
20.6k
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
207
20.6k
        g_segment_num << val;
208
20.6k
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
209
20.6k
        g_column_reader_num << val;
210
20.6k
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
211
20.6k
        g_bitmap_index_reader_num << val;
212
20.6k
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
213
20.6k
        g_bloom_filter_index_reader_num << val;
214
20.6k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
215
20.6k
        g_index_page_reader_num << val;
216
20.6k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
217
20.6k
        g_indexed_column_reader_num << val;
218
20.6k
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
219
20.6k
        g_inverted_index_reader_num << val;
220
20.6k
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
221
20.6k
        g_ordinal_index_reader_num << val;
222
20.6k
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
223
20.6k
        g_zone_map_index_reader_num << val;
224
20.6k
    }
225
20.6k
}
_ZN5doris13MetadataAdderINS_10segment_v27SegmentEE7add_numEl
Line
Count
Source
192
10.0k
void MetadataAdder<T>::add_num(int64_t val) {
193
10.0k
    if (val == 0) {
194
0
        return;
195
0
    }
196
10.0k
    if constexpr (std::is_same_v<T, RowsetMeta>) {
197
10.0k
        g_rowset_meta_num << val;
198
10.0k
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
199
10.0k
        g_tablet_meta_num << val;
200
10.0k
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
201
10.0k
        g_tablet_column_num << val;
202
10.0k
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
203
10.0k
        g_tablet_index_num << val;
204
10.0k
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
205
10.0k
        g_tablet_schema_num << val;
206
10.0k
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
207
10.0k
        g_segment_num << val;
208
10.0k
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
209
10.0k
        g_column_reader_num << val;
210
10.0k
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
211
10.0k
        g_bitmap_index_reader_num << val;
212
10.0k
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
213
10.0k
        g_bloom_filter_index_reader_num << val;
214
10.0k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
215
10.0k
        g_index_page_reader_num << val;
216
10.0k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
217
10.0k
        g_indexed_column_reader_num << val;
218
10.0k
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
219
10.0k
        g_inverted_index_reader_num << val;
220
10.0k
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
221
10.0k
        g_ordinal_index_reader_num << val;
222
10.0k
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
223
10.0k
        g_zone_map_index_reader_num << val;
224
10.0k
    }
225
10.0k
}
_ZN5doris13MetadataAdderINS_10segment_v212ColumnReaderEE7add_numEl
Line
Count
Source
192
21.5k
void MetadataAdder<T>::add_num(int64_t val) {
193
21.5k
    if (val == 0) {
194
0
        return;
195
0
    }
196
21.5k
    if constexpr (std::is_same_v<T, RowsetMeta>) {
197
21.5k
        g_rowset_meta_num << val;
198
21.5k
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
199
21.5k
        g_tablet_meta_num << val;
200
21.5k
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
201
21.5k
        g_tablet_column_num << val;
202
21.5k
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
203
21.5k
        g_tablet_index_num << val;
204
21.5k
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
205
21.5k
        g_tablet_schema_num << val;
206
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
207
21.5k
        g_segment_num << val;
208
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
209
21.5k
        g_column_reader_num << val;
210
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
211
21.5k
        g_bitmap_index_reader_num << val;
212
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
213
21.5k
        g_bloom_filter_index_reader_num << val;
214
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
215
21.5k
        g_index_page_reader_num << val;
216
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
217
21.5k
        g_indexed_column_reader_num << val;
218
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
219
21.5k
        g_inverted_index_reader_num << val;
220
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
221
21.5k
        g_ordinal_index_reader_num << val;
222
21.5k
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
223
21.5k
        g_zone_map_index_reader_num << val;
224
21.5k
    }
225
21.5k
}
_ZN5doris13MetadataAdderINS_12TabletSchemaEE7add_numEl
Line
Count
Source
192
1.35k
void MetadataAdder<T>::add_num(int64_t val) {
193
1.35k
    if (val == 0) {
194
0
        return;
195
0
    }
196
1.35k
    if constexpr (std::is_same_v<T, RowsetMeta>) {
197
1.35k
        g_rowset_meta_num << val;
198
1.35k
    } else if constexpr (std::is_same_v<T, TabletMeta>) {
199
1.35k
        g_tablet_meta_num << val;
200
1.35k
    } else if constexpr (std::is_same_v<T, TabletColumn>) {
201
1.35k
        g_tablet_column_num << val;
202
1.35k
    } else if constexpr (std::is_same_v<T, TabletIndex>) {
203
1.35k
        g_tablet_index_num << val;
204
1.35k
    } else if constexpr (std::is_same_v<T, TabletSchema>) {
205
1.35k
        g_tablet_schema_num << val;
206
1.35k
    } else if constexpr (std::is_same_v<T, segment_v2::Segment>) {
207
1.35k
        g_segment_num << val;
208
1.35k
    } else if constexpr (std::is_same_v<T, segment_v2::ColumnReader>) {
209
1.35k
        g_column_reader_num << val;
210
1.35k
    } else if constexpr (std::is_same_v<T, segment_v2::BitmapIndexReader>) {
211
1.35k
        g_bitmap_index_reader_num << val;
212
1.35k
    } else if constexpr (std::is_same_v<T, segment_v2::BloomFilterIndexReader>) {
213
1.35k
        g_bloom_filter_index_reader_num << val;
214
1.35k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexPageReader>) {
215
1.35k
        g_index_page_reader_num << val;
216
1.35k
    } else if constexpr (std::is_same_v<T, segment_v2::IndexedColumnReader>) {
217
1.35k
        g_indexed_column_reader_num << val;
218
1.35k
    } else if constexpr (std::is_same_v<T, segment_v2::InvertedIndexReader>) {
219
1.35k
        g_inverted_index_reader_num << val;
220
1.35k
    } else if constexpr (std::is_same_v<T, segment_v2::OrdinalIndexReader>) {
221
1.35k
        g_ordinal_index_reader_num << val;
222
1.35k
    } else if constexpr (std::is_same_v<T, segment_v2::ZoneMapIndexReader>) {
223
1.35k
        g_zone_map_index_reader_num << val;
224
1.35k
    }
225
1.35k
}
226
227
}; // namespace doris