性能优化检测

1、如何测量每个函数的执行时间   1.1 Debug Debug.startMethodTracing() fun() Debug.stopMethodTracing() 可以生成一个.trace文件在手机文件夹中,找到文件拖到studio中就可以查看文件了,可以看到函数执行时间 1.2 Profiler 打开Profiler->cpu->点击record-->点击stop--->查看Profi
相关文章
相关标签/搜索