GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Kyson/MemoryMonitor: 内存监控器

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
ART
ART
 
 
app
app
 
 
gradle/wrapper
gradle/wrapper
 
 
memorymonitorlib
memorymonitorlib
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

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

About

内存监控器

Topics

androidmemoryperformanceview

Resources

Readme
MIT license
Activity

Stars

88 stars

Watchers

3 watching

Forks

30 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.