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

Method setGlobalMemoryReportAllocators

src/CppUTestExt/MemoryReporterPlugin.cpp:74–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73
74void MemoryReporterPlugin::setGlobalMemoryReportAllocators()
75{
76 mallocAllocator.setRealAllocator(getCurrentMallocAllocator());
77 setCurrentMallocAllocator(&mallocAllocator);
78
79 newAllocator.setRealAllocator(getCurrentNewAllocator());
80 setCurrentNewAllocator(&newAllocator);
81
82 newArrayAllocator.setRealAllocator(getCurrentNewArrayAllocator());
83 setCurrentNewArrayAllocator(&newArrayAllocator);
84}
85
86void MemoryReporterPlugin::removeGlobalMemoryReportAllocators()
87{

Callers

nothing calls this directly

Calls 7

getCurrentNewAllocatorFunction · 0.85
setCurrentNewAllocatorFunction · 0.85
setRealAllocatorMethod · 0.80

Tested by

no test coverage detected