| 718 | LoggingMemoryPool::LoggingMemoryPool(MemoryPool* pool) : pool_(pool) {} |
| 719 | |
| 720 | Status LoggingMemoryPool::Allocate(int64_t size, int64_t alignment, uint8_t** out) { |
| 721 | Status s = pool_->Allocate(size, alignment, out); |
| 722 | std::cout << "Allocate: size = " << size << ", alignment = " << alignment << std::endl; |
| 723 | return s; |
| 724 | } |
| 725 | |
| 726 | Status LoggingMemoryPool::Reallocate(int64_t old_size, int64_t new_size, |
| 727 | int64_t alignment, uint8_t** ptr) { |