{"id":20745725,"url":"https://github.com/kyson/memorymonitor","last_synced_at":"2025-04-24T06:48:05.128Z","repository":{"id":100476215,"uuid":"69727786","full_name":"Kyson/MemoryMonitor","owner":"Kyson","description":"内存监控器","archived":false,"fork":false,"pushed_at":"2016-10-04T08:57:34.000Z","size":334,"stargazers_count":87,"open_issues_count":1,"forks_count":30,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-24T06:47:59.225Z","etag":null,"topics":["android","memory","performance","view"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kyson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-01T08:30:20.000Z","updated_at":"2024-08-22T09:05:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"f3faf0a1-b8e8-497c-a1e4-06104fea5bf3","html_url":"https://github.com/Kyson/MemoryMonitor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kyson%2FMemoryMonitor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kyson%2FMemoryMonitor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kyson%2FMemoryMonitor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kyson%2FMemoryMonitor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kyson","download_url":"https://codeload.github.com/Kyson/MemoryMonitor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250580709,"owners_count":21453531,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","memory","performance","view"],"created_at":"2024-11-17T07:22:07.882Z","updated_at":"2025-04-24T06:48:05.119Z","avatar_url":"https://github.com/Kyson.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MemoryMonitor\n\n内存监控组件，可以在应用debug版本设置开关，随时打开内存监控器，时时监控实际物理内存占用及堆内存的使用情况（堆内存的视图和AndroidStudio中的monitor是一样的）\n\n## 预览\n\n![mm_preview](https://github.com/Kyson/MemoryMonitor/blob/master/ART/mm_preview.gif)\n\n## 使用\n\n### step1\n\n引用3个aar包，链接：\n\n- [曲线图依赖库](https://github.com/Kyson/MemoryMonitor/blob/master/ART/curvechartlib-release.aar)\n- [悬浮视图依赖库](https://github.com/Kyson/MemoryMonitor/blob/master/ART/floatcontainerlib-release.aar)\n- [主包，内存监控器](https://github.com/Kyson/MemoryMonitor/blob/master/ART/memorymonitorlib-release.aar)\n\n### step2\n\n在Application的`onCreate`中调用`MemoryMonitor.getInstance().init(this)`进行初始化\n\n### step3\n\n在需要显示的地方调用\n\n`MemoryMonitor.getInstance().start(FloatCurveView.MEMORY_TYPE_PSS)`或者`MemoryMonitor.getInstance().start(FloatCurveView.MEMORY_TYPE_HEAP)`\n\n别忘了在不需要的时候停止它，通过调用`MemoryMonitor.getInstance().stop()`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyson%2Fmemorymonitor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkyson%2Fmemorymonitor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyson%2Fmemorymonitor/lists"}