| 511 | } |
| 512 | |
| 513 | void MemoryAccountant::alloc(size_t size) |
| 514 | { |
| 515 | MemoryAccountantAllocationNode* node = findOrCreateNodeOfSize(size); |
| 516 | node->allocations_++; |
| 517 | node->currentAllocations_++; |
| 518 | node->maxAllocations_ = (node->currentAllocations_ > node->maxAllocations_) ? node->currentAllocations_ : node->maxAllocations_; |
| 519 | } |
| 520 | |
| 521 | void MemoryAccountant::dealloc(size_t size) |
| 522 | { |
no outgoing calls
no test coverage detected