MCPcopy Create free account
hub / github.com/apache/impala / GetTotalChunkSizes

Method GetTotalChunkSizes

be/src/runtime/mem-pool.cc:238–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238int64_t MemPool::GetTotalChunkSizes() const {
239 DFAKE_SCOPED_LOCK(mutex_);
240 int64_t result = 0;
241 for (int i = 0; i < chunks_.size(); ++i) {
242 result += chunks_[i].size;
243 }
244 return result;
245}
246
247bool MemPool::CheckIntegrity(bool check_current_chunk_empty) {
248 DCHECK_EQ(zero_length_region_, MEM_POOL_POISON);

Callers 1

TESTFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 1

TESTFunction · 0.64