Skip to content

监测内存泄漏,统计UI渲染,卡顿等情况

License

Notifications You must be signed in to change notification settings

wyanassert/HTMonitor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MonitorMethod

本demo是用于监测内存泄漏和UI渲染时间。具体博客详情Runtime黑魔法

使用方法:

pod 'HTMonitor'

监控有下面几种模式

typedef enum {
    HTMonitorTypeAll = 0,
    HTMonitorTypeUILoadTime,  // UI 加载时间
    HTMonitorTypeUILag,  // UI卡顿检测
    HTMonitorTypeMemoryLeak,  //内存泄漏检测
    HTMonitorTypeFPS, // 监控屏幕FPS
} HTMonitorType;

开启监控

#import "HTMonitor.h"
[HTMonitor startMonitorType:HTMonitorTypeAll];

停止监控

#import "HTMonitor.h"
[HTMonitor stopMonitor:HTMonitorTypeAll];

About

监测内存泄漏,统计UI渲染,卡顿等情况

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 88.6%
  • Ruby 11.4%