Launch Time of an app

前端 未结 5 948
暗喜
暗喜 2021-01-03 13:05

What is the best way to launch an app and calculate its launch time in android(if it can be done with some code,then its better)

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-03 14:04

    To do it fast I would use logcat, something like:

    Log.d("tag", "starting");
    /* code goes here */
    Log.d("tag", "finished");
    

    If you want to do something bigger, try Traceview.

提交回复
热议问题