显示在一行_使用基于Swift的一行代码自动显示Log,Network,CPU,RAM,FPS等
发布日期:2021-06-24 17:13:38 浏览次数:2 分类:技术文章

本文共 1422 字,大约阅读时间需要 4 分钟。

dfa60b0968ef03d5ec494e4531424798.png

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.

预览

b5ed362e165aaa3a220618655da00397.png
4d9a3efc097f550f75fe57e175d41b9c.png
b3a491c13e09a21a5b8a29a78b4e9bef.png

代码目录

0ae8123ba640e6b2d530054d4f621548.png

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

开源地址:

https://github.com/zixun/GodEye

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

转载地址:https://blog.csdn.net/weixin_34026997/article/details/112616702 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:公众号 关注_微信公众号关注图文跳转网页如何操作实现?
下一篇:ros订阅相机深度信息_一起做ROS-DEMO系列 (2):基于find_object_2d的目标匹配识别

发表评论

最新留言

路过按个爪印,很不错,赞一个!
[***.219.124.196]2024年04月06日 00时03分13秒