运行在设备上的Andr​​oid systrace [英] Running Android systrace on device

查看:168
本文介绍了运行在设备上的Andr​​oid systrace的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法运行Android SDK工具叫做systrace.pl,因为我得到这样的错误:

I'm unable to run the Android SDK tool called systrace.pl because I get errors like:

error opening /sys/kernel/debug/tracing/options/overwrite: No such file or directory 

和确实/ SYS /内核/调试/跟踪目录中根本不存在。

And indeed the /sys/kernel/debug/tracing directory doesn't even exist.

一个小小的研究表明我需要启用的debugfs使用以下命令:

A little research showed I need to enable debugfs with the following command:

mount -o rw,remount -t debugfs none /sys/kernel/debug

运行后安装有指示的debugfs运行:

Running mount there afterwards indicates the debugfs is running:

#mount
...
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
...

和我有一丝启用(所有项目)的开发人员设置菜单。我使用股票ROM 4.1.1上的三星Galaxy S3。

And I have trace enabled (all items) in the developer settings menu. I'm using the stock ROM 4.1.1 on a Samsung Galaxy S3.

有很多的文章在那里的systrace为Android,但似乎没有解决任何实际正在生成的文件的问题/ SYS /内核/调试/跟踪...

There's a lot of articles out there on systrace for Android but nothing seems to solve the problem of no files actually being generated in /sys/kernel/debug/tracing...

推荐答案

您没有访问到您所选择的类别。

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

这篇关于运行在设备上的Andr​​oid systrace的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆