Systrace '/ sys / kernel / debug / tracing / tracing_on' does not exist

I am trying to use the systrace tool on the command line of my device without binding Nexus 4 running on Lollipop 5.1.1. It seems like when I try to run commands like:

systrace.py --time=4 -o testtrace.html sched app freq idle load

I get the following error:

CRITICAL:root:(TimeoutThread-1-for-Thread-1) Exception on ReadFile(01a599f5919448ea,
/sys/kernel/debug/tracing/tracing_on, retries=3, timeout=30),
attempt 1 of 4: AdbCommandFailedError("(device: 01a599f5919448ea) adb pull 
/sys/kernel/debug/tracing/tracing_on /var/folders/dj/xq_jq3wx6hg9gzw5r9svkmr00000gn/T/tmpGxH9ji/tmp_ReadFileWithPull: 
failed with exit status 1 and output:\n- adb: error: remote object '/sys/kernel/debug/tracing/tracing_on' does not exist\n",)
...
...
- adb: error: remote object '/sys/kernel/debug/tracing/tracing_on' does not exist

However, when I use the adb command:

adb shell /sys/kernel/debug/tracing/

I can confirm that the file 'tracing_on' exists.

Although the systrace tool works fine on Android Device Monitor. The reason I want to use the command line is because I would like to programmatically invoke a tool to analyze my application.

, Oneplus 3 Samsung Galaxy s6, html . Samsung galaxy s4 .

.

+6
1

, adb root:

adb root

.

0

All Articles