| 548 | } |
| 549 | |
| 550 | TCMallocGuard::~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 |
| 561 | static TCMallocGuard module_enter_exit_hook; |
| 562 | #endif |
nothing calls this directly
no test coverage detected