Skip to content

machenshuang/MonitorKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

介绍

文档

集成

pod 'MonitorKit'

使用

// 启动 UI 卡顿监听
CatonMonitor.shared.startMonitor()

// 关闭 UI 卡顿监听
CatonMonitor.shared.stopMonitor()

// 卡顿监听回调
CatonMonitor.shared.catonStackCallback = { res in
  print(res)
}

// 修改卡顿阈值,单位是 s,一般不宜过短,因为获取调用栈也是一个耗时的过程
CatonMonitor.shared.changeObserverTime(20)

About

APP 性能监控组件

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages