Awesome Open Source
Awesome Open Source
Sponsorship

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()


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
java (29,488
android (5,770
performance (557
view (200
memory (97

Find Open Source By Browsing 7,000 Topics Across 59 Categories