首页 > 科技 > 使用基于Swift的一行代码自动显示Log,Network,CPU,RAM,FPS等

使用基于Swift的一行代码自动显示Log,Network,CPU,RAM,FPS等

GodEye

使用基于Swift的一行代码自动显示Log,Crash,Network,ANR,Leak,CPU,RAM,FPS,NetFlow,Folder等。就像上帝睁开眼睛

功能

  • 监控日志并区分日志类型.
  • 监控崩溃, 包括Uncatched Exception和Signal崩溃.
  • 监控网络, 包括请求和响应的所有信息.
  • 监控卡顿, 并告诉你卡顿时候的所有线程的堆栈.
  • 监控内存泄露, 告诉你泄露的对象的类名.
  • 提供一个可以自定义指令和输出的控制台.
  • 监控系统和应用自身的CPU使用率.
  • 监控系统与应用自身的内存使用率.
  • 监控帧率FPS.
  • 监控系统和应用自身的网络流量.
  • 提供一个文件浏览器可用于查看沙盒,.app 以及系统根目录的文件.
  • 运行时自定义设置

特点

  • 丰富: 功能全面
  • 方便: 一行代码接入
  • 自动: 零代码入侵
  • 安全: Release包可不打入一行代码

为了尽量复用代码,这个项目中的某些组件之间有比较强的依赖关系。为了方便其他开发者使用,我从中拆分出以下独立组件:

  • Log4G — Simple, lightweight logging framework written in Swift.
  • AssistiveButton — Simple Assistive Button.
  • AppBaseKit — A handy kit of Swift extensions and wrapped class to boost your productivity.
  • AppSwizzle — lightweight and flexible method swizzling wrapped by swift.
  • LeakEye — LeakEye is a memory leak monitor.
  • NetworkEye — NetworkEye is a network monitor,automatic catch the request and response infomation of all kinds of request send.
  • ANREye — ANREye is an ANR (Application Not Responding) monitor,automatic catch the ANR and return stacktrace of all threads.
  • ASLEye — ASLEye is an ASL(Apple System Log) monitor, automatic catch the log from NSLog by asl module.
  • CrashEye — CrashEye is an ios crash monitor,automatic catch exception crash & signal crash and return the stacktrace.
  • SystemEye — SystemEye is a system monitor,automatic catch the infomation of cpu,memory....etc.

预览

代码目录

更多使用方法可以查看官方文档

开源地址:

https://github.com/zixun/GodEye

更多更优质的资讯,请关注我,你的支持会鼓励我不断分享更多更好的优质文章。

本文来自投稿,不代表本人立场,如若转载,请注明出处:http://www.souzhinan.com/kj/284279.html