Running Android systrace on device

只愿长相守 提交于 2019-12-01 00:25:58

Take a look at this document:

Tracing on Android 4.3 and higher

To run a trace on Android 4.3 and higher devices:

Make sure the device is connected through a USB cable and is enabled for debugging.

I think that systrace must be run on a device, not an emulator. I'm getting the same error in my emulator.

Answered the same question below:

Make Systrace work with 4.1.2 device on Mac

Looks like your systrace is not enabled on the kernel your device is running, you need to replace your boot.img with one that has systrace support.

You don't have access to that categories that you have selected.

use following command to check what all categories that current device can support.

$python systrace.py -l 

     gfx - Graphics
   input - Input
    view - View System
 webview - WebView
      wm - Window Manager
      am - Activity Manager
      sm - Sync Manager
   audio - Audio
   video - Video
  camera - Camera
     hal - Hardware Modules
     app - Application
     res - Resource Loading
  dalvik - Dalvik VM
      rs - RenderScript
  bionic - Bionic C Library
   power - Power Management

root and remount the device before running above command.

adb root
adb remount
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!