Giter VIP home page Giter VIP logo

lib_instrument_iomonitor's Introduction

IoMonitor

1.使用

  • 1,初始化
FileIOMonitor.start();

2.项目引用

  • 1,root build.gradle中
classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.8'
  • 2,module build.gradle中
apply plugin: 'android-aspectjx'
implementation 'com.github.zhuyidian:lib_Instrument_IoMonitor:V1.0.1'

3.版本更新

  • V1.0.0
首次成功运行版本
  • V1.0.1
最新版本

4.说明

实现的效果:

其他业务不允许主线程长时间的 IO 操作,主线程的 IO 操作耗时超过 100ms 会警告,腾讯微视,腾讯体育,腾讯视频

  1. 主线程读写文件真实耗时 > 100MS 抛警告弹窗,弹窗里面需要的信息(读写的buffer大小,操作的文件,耗时的时间,操作堆栈信息)
  2. 读写时间没啥问题,但是操作的 buffer < page_size 弹窗(读写的buffer大小,操作的文件,耗时的时间,操作堆栈信息)
  3. 打开操作了文件没有关闭,警告弹窗(操作的堆栈)动态代理

lib_instrument_iomonitor's People

Contributors

zhuyidian avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.