MCPcopy Create free account
hub / github.com/devosoft/avida / PrintStats

Function PrintStats

libs/tcmalloc-1.4/src/tcmalloc.cc:405–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405static void PrintStats(int level) {
406 const int kBufferSize = 16 << 10;
407 char* buffer = new char[kBufferSize];
408 TCMalloc_Printer printer(buffer, kBufferSize);
409 DumpStats(&printer, level);
410 write(STDERR_FILENO, buffer, strlen(buffer));
411 delete[] buffer;
412}
413
414// TCMalloc's support for extra malloc interfaces
415class TCMallocImplementation : public MallocExtension {

Callers 2

~TCMallocGuardMethod · 0.85
do_malloc_statsFunction · 0.85

Calls 1

DumpStatsFunction · 0.85

Tested by

no test coverage detected