Skip to content

Commit

Permalink
每个页面最多上传40的点
Browse files Browse the repository at this point in the history
  • Loading branch information
yixiangboy committed Feb 7, 2020
1 parent 7a9dcbf commit 28d5206
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ - (void)stopHealthCheck{
}

- (void)doSecondFunction{
//最多采样40个点
if(_cpuPageArray.count > 40){
return;
}

//1、获取当前时间
NSString *currentTimeInterval = [self currentTimeInterval];

Expand All @@ -170,6 +175,10 @@ - (void)doSecondFunction{
}

- (void)handleFPS:(NSInteger)fps{
//最多采样40个点
if (_fpsPageArray.count > 40) {
return;
}
[_fpsPageArray addObject:@{
@"time":[self currentTimeInterval],
@"value":[NSString stringWithFormat:@"%zi",fps]
Expand Down Expand Up @@ -230,7 +239,7 @@ - (void)upLoadData{
}
};

//NSLog(@"上传信息 == %@",dic);
NSLog(@"上传信息 == %@",dic);

if (![DoraemonManager shareInstance].pId) {
NSLog(@"dokik pId 为空");
Expand Down

0 comments on commit 28d5206

Please sign in to comment.