| 551 | } |
| 552 | |
| 553 | size_t MemoryAccountant::totalAllocations() const |
| 554 | { |
| 555 | size_t theTotalAllocations = 0; |
| 556 | |
| 557 | for (MemoryAccountantAllocationNode* node = head_; node; node = node->next_) |
| 558 | theTotalAllocations += node->allocations_; |
| 559 | |
| 560 | return theTotalAllocations; |
| 561 | } |
| 562 | |
| 563 | size_t MemoryAccountant::totalDeallocations() const |
| 564 | { |