提交 64b15ae6 编写于 作者: Y yixiangboy

和android统一卡顿阈值为0.2s

上级 8d739f1a
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#import "DoraemonHealthManager.h" #import "DoraemonHealthManager.h"
//默认超时间隔 //默认超时间隔
static CGFloat const kDoraemonBlockMonitorTimeInterval = 0.5f; static CGFloat const kDoraemonBlockMonitorTimeInterval = 0.2f;
@interface DoraemonANRManager() @interface DoraemonANRManager()
......
...@@ -189,8 +189,8 @@ ...@@ -189,8 +189,8 @@
} }
- (void)anrClick{ - (void)anrClick{
NSLog(@"1秒钟的卡顿"); NSLog(@"0.4秒钟的卡顿");
[NSThread sleepForTimeInterval:1.0]; [NSThread sleepForTimeInterval:0.4];
// for(int i=0 ; i< 50000; i++){ // for(int i=0 ; i< 50000; i++){
// UIView *v = [[UIView alloc] init]; // UIView *v = [[UIView alloc] init];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册