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

Method report_alloc_memory

src/CppUTestExt/MemoryReportFormatter.cpp:50–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void NormalMemoryReportFormatter::report_alloc_memory(TestResult* result, TestMemoryAllocator* allocator, size_t size, char* memory, const char* file, size_t line)
51{
52 result->print(StringFromFormat("\tAllocation using %s of size: %lu pointer: %p at %s:%d\n", allocator->alloc_name(), (unsigned long) size, (void*) memory, file, (int) line).asCharString());
53}
54
55void NormalMemoryReportFormatter::report_free_memory(TestResult* result, TestMemoryAllocator* allocator, char* memory, const char* file, size_t line)
56{

Callers 1

alloc_memoryMethod · 0.45

Calls 4

StringFromFormatFunction · 0.85
asCharStringMethod · 0.80
printMethod · 0.45
alloc_nameMethod · 0.45

Tested by

no test coverage detected