Android - Can't use traceview

前端 未结 1 952
暗喜
暗喜 2021-01-19 18:48

I am trying to use traceview to run some profiling against an Android application. I have wrapped the code that I want to trace with the following lines:

Deb         


        
相关标签:
1条回答
  • 2021-01-19 18:53

    make sure that Debug class you imported is this one : android.os.Debug

    or do this :

    android.os.Debug.startMethodTracing("xxx");
    android.os.Debug.stopMethodTracing();
    
    0 讨论(0)
提交回复
热议问题