GithubHelp home page GithubHelp logo

memorymonitor's Introduction

MemoryMonitor

内存监控组件,可以在应用debug版本设置开关,随时打开内存监控器,时时监控实际物理内存占用及堆内存的使用情况(堆内存的视图和AndroidStudio中的monitor是一样的)

预览

mm_preview

使用

step1

引用3个aar包,链接:

step2

在Application的onCreate中调用MemoryMonitor.getInstance().init(this)进行初始化

step3

在需要显示的地方调用

MemoryMonitor.getInstance().start(FloatCurveView.MEMORY_TYPE_PSS)或者MemoryMonitor.getInstance().start(FloatCurveView.MEMORY_TYPE_HEAP)

别忘了在不需要的时候停止它,通过调用MemoryMonitor.getInstance().stop()

memorymonitor's People

Contributors

kyson avatar

Watchers

James Cloos 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.