MCPcopy Create free account
hub / github.com/anjo76/angelscript / PrintLocationCounters

Function PrintLocationCounters

sdk/tests/test_feature/source/utils.cpp:227–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227void PrintLocationCounters()
228{
229#ifdef TRACK_LOCATIONS
230 // Print allocation counts per location
231 map<loc, counters>::iterator i2 = locCount.begin();
232 while (i2 != locCount.end())
233 {
234 const char *file = i2->first.file;
235 int line = i2->first.line;
236 int count = i2->second.allocs;
237 int frees = i2->second.frees;
238 int totalMem = i2->second.totalMemAlloced;
239 int totalFree = i2->second.totalMemFreed;
240 PRINTF("%s (%d): %d, %d, %d, %d\n", file, line, count, count-frees, totalMem, totalMem - totalFree);
241 i2++;
242 }
243#endif
244}
245
246void RemoveMemoryManager()
247{

Callers 1

RemoveMemoryManagerFunction · 0.85

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected