-
Notifications
You must be signed in to change notification settings - Fork 184
Open
Description
`+ (void)startSingleChunkMallocTracer {
if ([MTHAllocations shared].isLoggingOn)
return;
[[MTHAllocations shared]
startSingleChunkMallocDetector:[MTHawkeyeUserDefaults shared].chunkMallocThresholdInBytes
callback:^(size_t bytes, vm_address_t *_Nonnull stack_frames, size_t frames_count) {
MTHLogInfo(@"chunk malloc:%.2fmb stack: ", bytes / 1024 / 1024.f);
}];
MTHLogInfo(@"allocations single chunk malloc start");
}`
if ([MTHAllocations shared].isLoggingOn) /// 这块判断有问题,开启了log, 就不能开启大块内存监控
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels