| 241 | } |
| 242 | |
| 243 | void LifetimePolicy::Dump() const { |
| 244 | // LOG(INFO_DEV) << "LifetimePolicy, start:" << start_ |
| 245 | // << ", interval:" << interval_ |
| 246 | // << ", Detail:"; |
| 247 | for (auto& b : bins_) { |
| 248 | b->Dump(); |
| 249 | } |
| 250 | { |
| 251 | std::lock_guard<spin_lock> l(large_bin_lock_); |
| 252 | for (auto& large_bin : large_bins_) { |
| 253 | auto bin_info = large_bin.second; |
| 254 | bin_info->Dump(); |
| 255 | } |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | void LifetimePolicy::Cleanup() { |
| 260 | for (auto bin : bins_) { |