| 340 | } |
| 341 | |
| 342 | std::string BoltMemoryManager::treeMemoryUsage() { |
| 343 | std::string str; |
| 344 | std::string arrowUsed = succinctBytes(arrowPool_->bytes_allocated()); |
| 345 | str += fmt::format( |
| 346 | "ArrowMemoryPool usage {} reserved {} peak {}\n", |
| 347 | arrowUsed, |
| 348 | arrowUsed, |
| 349 | arrowUsed); |
| 350 | str += boltMemoryManager_->treeMemoryUsage(); |
| 351 | return str; |
| 352 | } |
| 353 | |
| 354 | bool BoltMemoryManager::tryDestructSafe() { |
| 355 | // Bolt memory pools considered safe to destruct when no alive allocations. |