前言
本文为内存泄漏分析&Android Studio Profiler入门,由3.0的Android Profiler替代了2.0的Android Monitor。这个需要明确。
先来张图感受感受一下:
认识Android Profiler
在哪?
些许小坑
-
advanced profiling is unavailable for the selected process
对于所选的过程,高级剖析是不可用的。
出现这个,跟着提示走就行了,要么升级,要么点一下那个enable。
这里用一张别人博客的图:(图片来自:https://www.jianshu.com/p/bdfd2a6b2681)
-
Android Profiler requires a device with API 21 (Lollipop) or higher
对设备要求API必须大于21