Skip to content

Commit

Permalink
修改监控参数
Browse files Browse the repository at this point in the history
  • Loading branch information
ming1016 committed Aug 17, 2017
1 parent 00f1e7e commit 3775d9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GCDFetchFeed/GCDFetchFeed/Lib/SMLagMonitor/SMCPUMonitor.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ + (void)updateCPU {
threadBaseInfo = (thread_basic_info_t)threadInfo;
if (!(threadBaseInfo->flags & TH_FLAGS_IDLE)) {
integer_t cpuUsage = threadBaseInfo->cpu_usage / 10;
if (cpuUsage > 70) {
//cup 消耗大于 70 时打印和记录堆栈
if (cpuUsage > 75) {
//cup 消耗大于 75 时打印和记录堆栈
NSString *reStr = smStackOfThread(threads[i]);
//记录数据库中
[[[SMLagDB shareInstance] increaseWithStackString:reStr] subscribeNext:^(id x) {}];
Expand Down

0 comments on commit 3775d9b

Please sign in to comment.