From d5c877d78cfec781c2301c732a8704016fecc148 Mon Sep 17 00:00:00 2001 From: rosen Date: Thu, 18 Jan 2018 16:46:19 +0800 Subject: [PATCH] close nslog --- Demo/OOMDetectorDemo/MyOOMDataManager.m | 4 ++-- .../OOMDetector/statistic/OOMStatisticsInfoCenter.mm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Demo/OOMDetectorDemo/MyOOMDataManager.m b/Demo/OOMDetectorDemo/MyOOMDataManager.m index 529287b..20f7b44 100644 --- a/Demo/OOMDetectorDemo/MyOOMDataManager.m +++ b/Demo/OOMDetectorDemo/MyOOMDataManager.m @@ -34,14 +34,14 @@ + (instancetype)getInstance - (void)performanceData:(NSDictionary *)data completionHandler:(void (^)(BOOL))completionHandler { - NSLog(@"%@ \n", data); +// NSLog(@"%@ \n", data); completionHandler(YES); } - (void)fileData:(NSData *)data extra:(NSDictionary *)extra type:(QQStackReportType)type completionHandler:(void (^)(BOOL))completionHandler { - NSLog(@"\n %@ \n %ld \n %@\n", extra, type, [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]); +// NSLog(@"\n %@ \n %ld \n %@\n", extra, type, [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]); if (type == QQStackReportTypeOOMLog) { // 此处为了Demo演示需要传参数NO,NO表示我们自己业务对data处理尚未完成或者失败,OOMDetector内部暂时不会删除临时文件 diff --git a/libOOMDetector/libOOMDetector/OOMDetector/OOMDetector/statistic/OOMStatisticsInfoCenter.mm b/libOOMDetector/libOOMDetector/OOMDetector/OOMDetector/statistic/OOMStatisticsInfoCenter.mm index 042c5fd..f125c09 100644 --- a/libOOMDetector/libOOMDetector/OOMDetector/OOMDetector/statistic/OOMStatisticsInfoCenter.mm +++ b/libOOMDetector/libOOMDetector/OOMDetector/OOMDetector/statistic/OOMStatisticsInfoCenter.mm @@ -110,7 +110,7 @@ -(void)updateMemory ++flag; if(maxMemory && flag >= 30){ if(maxMemory > _singleLoginMaxMemory){ - NSLog(@"OOMStatisticsInfoCenter update maxMemory:%.2fMb",maxMemory); +// NSLog(@"OOMStatisticsInfoCenter update maxMemory:%.2fMb",maxMemory); _singleLoginMaxMemory = maxMemory; [self saveLastSingleLoginMaxMemory]; flag = 0;