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

Method MemUsage

be/src/util/bitmap.h:50–53  ·  view source on GitHub ↗

Compute memory usage of a bitmap, not including the Bitmap object itself.

Source from the content-addressed store, hash-verified

48
49 /// Compute memory usage of a bitmap, not including the Bitmap object itself.
50 static int64_t MemUsage(int64_t num_bits) {
51 DCHECK_GE(num_bits, 0);
52 return BitUtil::RoundUpNumi64(num_bits) * sizeof(int64_t);
53 }
54
55 /// Compute memory usage of this bitmap, not including the Bitmap object itself.
56 int64_t MemUsage() const { return MemUsage(num_bits_); }

Callers 1

TESTFunction · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36