After you unblocked me yesterday I had no problem using perfetto without the config file - I am now trying to utilize with the config file attached in the quickstart guide:
https://android.googlesource.com/platform/external/perfetto/+/e74213b02b99a05d2703a41d5543dffa45996d87/docs/quickstart/android-tracing.mdadb shell perfetto \
-c - --txt \
-o /data/misc/perfetto-traces/trace \
<<EOF
duration_ms: 10000
buffers: {
size_kb: 8960
fill_policy: DISCARD
}
buffers: {
size_kb: 1280
fill_policy: DISCARD
}
data_sources: {
config {
name: "linux.ftrace"
ftrace_config {
ftrace_events: "sched/sched_switch"
ftrace_events: "power/suspend_resume"
ftrace_events: "sched/sched_process_exit"
ftrace_events: "sched/sched_process_free"
ftrace_events: "task/task_newtask"
ftrace_events: "task/task_rename"
ftrace_events: "ftrace/print"
atrace_categories: "gfx"
atrace_categories: "view"
atrace_categories: "webview"
atrace_categories: "dalvik"
atrace_categories: "power"
}
}
}
data_sources: {
config {
name: "linux.process_stats"
target_buffer: 1
process_stats_config {
scan_all_processes_on_start: true
}
}
}
EOF
It is pushed correctly but when I try to use it: adb shell perfetto -c /data/misc/perfetto-configs/trace_config.txt --txt -o /data/misc/perfetto-traces/trace
The console returns the following error:
/data/misc/perfetto-configs/trace_config.txt:1:0 error: No field named "adb" in proto TraceConfig
adb shell perfetto \
~~
[182.190] pbtxt_to_pb.cc:670 Unexpected char \ (errno: 0, Success)