| 602 | } |
| 603 | |
| 604 | SimpleString MemoryAccountant::report() const |
| 605 | { |
| 606 | if (head_ == NULLPTR) |
| 607 | return reportNoAllocations(); |
| 608 | |
| 609 | SimpleString accountantReport = reportTitle() + reportHeader(); |
| 610 | |
| 611 | for (MemoryAccountantAllocationNode* node = head_; node; node = node->next_) |
| 612 | accountantReport += StringFromFormat(MEMORY_ACCOUNTANT_ROW_FORMAT, stringSize(node->size_).asCharString(), (int) node->allocations_, (int) node->deallocations_, (int) node->maxAllocations_); |
| 613 | |
| 614 | return accountantReport + reportFooter(); |
| 615 | } |
| 616 | |
| 617 | AccountingTestMemoryAllocator::AccountingTestMemoryAllocator(MemoryAccountant& accountant, TestMemoryAllocator* origAllocator) |
| 618 | : accountant_(accountant), originalAllocator_(origAllocator), head_(NULLPTR) |
nothing calls this directly
no test coverage detected