美文网首页
android studio profiler替代 ddms

android studio profiler替代 ddms

作者: 牵手生活 | 来源:发表于2023-12-25 10:55 被阅读0次

打开方式

view -- Tool Windows -- Profiler,或者通过工具栏图标打开,我这里显示灰色,只有通过view打开

也可以使用命令的办法。 在命令行上捕获系统跟踪记录 | App quality | Android Developers

文章

使用Android Studio检测内存泄露 https://blog.csdn.net/jim19890923/article/details/73498214

Android Studio Profiler使用之查看Trace :https://blog.csdn.net/wd229047557/article/details/104636417

添加进程

profiler添加wework进程


profiler添加wework进程

选择cpu

选择cpu

cpu-record


cpu-record

手机上点击按钮或其它操作

cpu-record-stop

cpu-record-stop

profiler-main线程-Button up 页面
输入onClick然后回车

输入onClick然后回车

点击保存轨迹


点击保存轨迹 点击保存轨迹-另存为

notepad++用编辑器打开,搜索onClick


image.png

定位到onClick的调用

�  :? :蘒 ����  ?? ?蘒   �l 0x1198    com.duomai.kikyou.front.fragment.StatusFragment$1   onClick (Landroid/view/View;)V  StatusFragment.java

调用轨迹


调用轨迹

为什么profiler 没有 call chart

Android Studio Profiler使用之查看Trace_profile抓trace-CSDN博客

相关文章

网友评论

      本文标题:android studio profiler替代 ddms

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