MCPcopy Create free account
hub / github.com/cpputest/cpputest / alloc

Method alloc

src/CppUTest/TestMemoryAllocator.cpp:513–519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511}
512
513void 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
521void MemoryAccountant::dealloc(size_t size)
522{

Callers 5

alloc_memoryMethod · 0.45
createCacheForSizeFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected