| 226 | } |
| 227 | |
| 228 | size_t LifetimePolicy::TotalMem() const { |
| 229 | size_t total_mem = 0; |
| 230 | for (auto bin : bins_) { |
| 231 | total_mem += bin->TotalMem(); |
| 232 | } |
| 233 | { |
| 234 | std::lock_guard<spin_lock> l(large_bin_lock_); |
| 235 | for (auto large_bin : large_bins_) { |
| 236 | auto bin_info = large_bin.second; |
| 237 | total_mem += bin_info->TotalMem(); |
| 238 | } |
| 239 | } |
| 240 | return total_mem; |
| 241 | } |
| 242 | |
| 243 | void LifetimePolicy::Dump() const { |
| 244 | // LOG(INFO_DEV) << "LifetimePolicy, start:" << start_ |
no test coverage detected