android 内存泄漏解决

2018-12-25  本文已影响0人  Q罗

MAT下载地址

http://www.eclipse.org/mat/downloads.php

MAT官方说明文档:

http://127.0.0.1:56753/help/index.jsp?topic=%2Forg.eclipse.mat.ui.help%2Fnoteworthy.html

android studio导出来的需要转化下:

/Users/qiluo/Library/Android/sdk/platform-tools/hprof-conv memory-泄漏18-54.hprof new.hprof

参考文章:

https://blog.csdn.net/aaa2832/article/details/19419679

https://blog.csdn.net/wanghuiqi2008/article/details/50724676

https://blog.csdn.net/itachi85/article/details/77075455

内存回收:

https://blog.csdn.net/qq_18870127/article/details/79902076

leakcanary工具解决泄漏问题(一般的泄漏问题都可以检测到):

https://github.com/square/leakcanary

adb shell am start -n com.alibaba.ailabs.genie.launcher/com.squareup.leakcanary.internal.DisplayLeakActivity

上一篇下一篇

猜你喜欢

热点阅读