traceview的一点问题
我想看下一个app的启动时的性能,android.os.Debug.startMethodTracing("myActivityTrace"); 加在了onCreate()方法中,
android.os.Debug.stopMethodTracing(); 加在了onResume()方法中。
打开得到的trace文件,incl cup time是588.890ms。请问,这个时间,是什么时间?我怎么得到2个Debug方法之间消耗的时间值?
另外,如果我想知道app启动的时间,我该怎么加Debug方法? --------------------编程问答-------------------- 如果想得到时间用SystemClock类的方法啊, 不用Debug --------------------编程问答-------------------- System.currentTimeMillis() 取start,end 然后end-start
补充:移动开发 , Android