| 713 | LoggingMemoryPool::LoggingMemoryPool(MemoryPool* pool) : pool_(pool) {} |
| 714 | |
| 715 | Status LoggingMemoryPool::Allocate(int64_t size, int64_t alignment, uint8_t** out) { |
| 716 | Status s = pool_->Allocate(size, alignment, out); |
| 717 | std::cout << "Allocate: size = " << size << ", alignment = " << alignment << std::endl; |
| 718 | return s; |
| 719 | } |
| 720 | |
| 721 | Status LoggingMemoryPool::Reallocate(int64_t old_size, int64_t new_size, |
| 722 | int64_t alignment, uint8_t** ptr) { |