MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / printMemLeaksInfo

Function printMemLeaksInfo

src/library/common/trace_malloc.c:249–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249void
250printMemLeaksInfo(void)
251{
252 puts("\n");
253 if (!tracedSize) {
254 puts("[MALLOC TRACE] Hurray! There are not memory leaks!");
255 }
256 else {
257 char s1[1024], s2[1024];
258
259 sprintfTracedSize(s1, tracedSize);
260 sprintfTracedSize(s2, rawSize);
261 printf("[MALLOC TRACE] Totally %s is lost, raw traced size is %s\n",
262 s1, s2);
263 puts("Detailed report:\n"
264 "------------------------------------------------------------");
265 assert(!isListEmpty(&traceList));
266 listDoForEach(&traceList, printNodeInfo);
267 }
268}
269
270void
271releaseMallocTrace(void)

Callers 1

clblasTeardownFunction · 0.50

Calls 3

sprintfTracedSizeFunction · 0.85
isListEmptyFunction · 0.85
listDoForEachFunction · 0.85

Tested by

no test coverage detected