Compute memory usage of a bitmap, not including the Bitmap object itself.
| 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_); } |