HTMonitor 0.1.0

HTMonitor 0.1.0

helloted 维护。



HTMonitor 0.1.0

MonitorMethod

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

使用方法:

pod 'HTMonitor'

监控有三种模式

typedef enum {
    HTMonitorTypeAll = 0,
    HTMonitorTypeUI,
    HTMonitorTypeMemory,
} HTMonitorType;

开启监控

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

停止监控

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