Ai
2 Star 0 Fork 0

mirrors_android_source/adb

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
trace.sh 651 Bytes
一键复制 编辑 原始数据 按行查看 历史
Josh Gao 提交于 2016-12-14 06:24 +08:00 . adb: add script to trace adbd.
set -e
if ! [ -e $ANDROID_BUILD_TOP/external/chromium-trace/systrace.py ]; then
echo "error: can't find systrace.py at \$ANDROID_BUILD_TOP/external/chromium-trace/systrace.py"
exit 1
fi
adb shell "sleep 1; atrace -b 65536 --async_start adb sched power freq idle disk mmc load"
adb shell killall adbd
adb wait-for-device
echo "press enter to finish..."
read
TRACE_TEMP=`mktemp /tmp/trace.XXXXXX`
echo Saving trace to ${TRACE_TEMP}, html file to ${TRACE_TEMP}.html
adb shell atrace --async_stop -z > ${TRACE_TEMP}
$ANDROID_BUILD_TOP/external/chromium-trace/systrace.py --from-file=${TRACE_TEMP} -o ${TRACE_TEMP}.html
chrome ${TRACE_TEMP}.html
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_android_source/adb.git
git@gitee.com:mirrors_android_source/adb.git
mirrors_android_source
adb
adb
main

搜索帮助