查看活动堆栈
adb -s <serialNumber> shell dumpsys activity activities
与 watch
unix 命令一起使用时非常有用:
watch -n 5 "adb -s <serialNumber> shell dumpsys activity activities | sed -En -e '/Stack #/p' -e '/Running activities/,/Run #0/p'"
adb -s <serialNumber> shell dumpsys activity activities
与 watch
unix 命令一起使用时非常有用:
watch -n 5 "adb -s <serialNumber> shell dumpsys activity activities | sed -En -e '/Stack #/p' -e '/Running activities/,/Run #0/p'"