檢視活動堆疊
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'"