TraceView(profile) and Systrace
TraceView(profile)?
代碼里面
?
?拖到AS
?----------------------------------------------------------------------------------------
SysTrace
Systrace不會追蹤應用的所有工作,所以在有需求的情況下,需要添加要追蹤的代碼部分。可以通過Trace類來實現這個功能,即Trace.beginSection()與Trace.endSection()之間的代碼工作會一直被追蹤。
腳本地址:
C:\Users\Administrator\AppData\Local\Android\Sdk\platform-tools\systrace\systrace.py
使用方法:
cd android-sdk/platform-tools/systrace
python systrace.py -t 10 -o mynewtrace.html sched gfx view wm
坑一
不支持Python3.8
Systrace does not support Python 3.8. Please use Python 2.7.
坑二
找不到win32con
cmd: pip install pywin32 超時多試幾次
坑三
ImportError: No module named six
?
?
?
?
?
?
新人創作打卡挑戰賽發博客就能抽獎!定制產品紅包拿不停!總結
以上是生活随笔為你收集整理的TraceView(profile) and Systrace的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 勾股定理和全等
- 下一篇: java 获取继承字段_java – 从