美文网首页
内存溢出问题

内存溢出问题

作者: crush_d872 | 来源:发表于2020-11-11 12:33 被阅读0次

淘宝的标准是:
内存安全线:430M
内存警告线:530M
内存危险线:620M

1. 用android studio的memory profiler可以分析内存堆栈,找到大内存的对象https://developer.android.com/studio/profile/memory-profiler?hl=zh-cn,这个只支持as debug模式,需要用户自行完成。
2. 如果是bitmap的问题,bitmap懒加载和像素优化https://www.jianshu.com/p/f4e1a5c118ce,bitmap缓存池https://zhuanlan.51cto.com/art/202001/609590.htm

相关文章

网友评论

      本文标题:内存溢出问题

      本文链接:https://www.haomeiwen.com/subject/laeebktx.html