MCPcopy Create free account
hub / github.com/devosoft/avida / ~TCMallocGuard

Method ~TCMallocGuard

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

Source from the content-addressed store, hash-verified

548}
549
550TCMallocGuard::~TCMallocGuard() {
551 if (--tcmallocguard_refcount == 0) {
552 const char* env = getenv("MALLOCSTATS");
553 if (env != NULL) {
554 int level = atoi(env);
555 if (level < 1) level = 1;
556 PrintStats(level);
557 }
558 }
559}
560#ifndef WIN32_OVERRIDE_ALLOCATORS
561static TCMallocGuard module_enter_exit_hook;
562#endif

Callers

nothing calls this directly

Calls 1

PrintStatsFunction · 0.85

Tested by

no test coverage detected