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

Function GetMemoryBytesConsumed

be/src/benchmarks/hash-table-benchmark.cc:310–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310int64_t GetMemoryBytesConsumed(HashTable* ht) {
311 int empty_buckets = ht->EmptyBuckets();
312 int64_t mem_size = ht->CurrentMemSize();
313 return mem_size - (empty_buckets * (HashTable::BUCKET_SIZE + 4));
314}
315
316int main(int argc, char** argv) {
317 impala::InitCommonRuntime(argc, argv, true, impala::TestInfo::BE_TEST);

Callers 1

mainFunction · 0.85

Calls 2

EmptyBucketsMethod · 0.80
CurrentMemSizeMethod · 0.80

Tested by

no test coverage detected