對(duì)以下的優(yōu)酷頁(yè)面
1.首先連接adb shell
2.使用命令:
dumpsys activity | grep mFocusedActivity
效果以下圖:
下載app鏈接:
https://github.com/fashare2015/ActivityTracker/blob/master/apk/app-debug.apk?raw=true
源碼鏈接:
https://github.com/fashare2015/ActivityTracker
效果如上圖
兩種方式都可以,孰優(yōu)孰劣看個(gè)人習(xí)慣了
參考:
https://gold.xitu.io/post/58614e8461ff4b006cebaaf6
上一篇 程序員的績(jī)效之謎