当前位置:   article > 正文

抓systrace的常用的四种方法_android device monitor抓取systrace

android device monitor抓取systrace

Systrace是分析性能问题的最基本的工具,那么如何抓取systrace呢?

  1. 手机准备好你要进行抓取的界面 点击开始抓取(命令行的话就是开始执行命令)
  2. 手机上开始操作 设定好的时间到了之后,会将生成 Trace 文件,
  3. 使用 Chrome 将这个文件打开进行分析

下面介绍了四种使用工具抓取 Systrace 的方法:

 

一、使用Eclipse/Android Studio/Device Monitor抓取

  1. In Eclipse, open an Android application project.
  2. Switch to the DDMS perspective, by selecting Window > Perspectives > DDMS.
  3. In the Devices tab, select the device on which to run a trace. If no devices are listed, make sure your device is connected via USB cable and that debugging is enabled on the device.
  4. Click the Systrace icon at the top of the Devices panel to configure tracing.
  5. Set the tracing options and click OK to start the trace

 

  1. In Android Studio, open an Android application project.
  2. Open the Device Monitor by selecting Tools > Android > Monitor.
声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号