Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying to run systrace on android device but the resulting html shows an error

Unable to select a master clock domain because no path can be found from "SYSTRACE" to "LINUX_FTRACE_GLOBAL".

like image 819
JamesWang Avatar asked Oct 31 '18 06:10

JamesWang


People also ask

How do I open a Systrace file?

The Systrace tool can be run from the Android Developer Tools (ADT) in Eclipse, Android Studio, or the Android Device Monitor. In Eclipse, open an Android application project. Switch to the DDMS perspective, by selecting Window > Perspectives > DDMS. In the Devices tab, select the device on which to run a trace.


2 Answers

enter image description here

open chrome, enter "chrome://tracing", and click the "load" button to load your trace html file.

like image 103
BinqiangSun Avatar answered Sep 28 '22 04:09

BinqiangSun


It might be used incorrectly parameters in systrace. The correct command is here, please try it.

python ./systrace.py -t 5 -o ./trace.html gfx input view webview wm am sm audio video camera hal app res dalvik rs bionic power sched irq freq idle disk mmc load sync workq memreclaim regulators
like image 24
tianrui yang Avatar answered Sep 28 '22 02:09

tianrui yang