Comment #9 on issue 1176549 by
skyo...@chromium.org: Chrome app missing surface updates
https://bugs.chromium.org/p/chromium/issues/detail?id=1176549#c9Thanks for the details. Chrome only enables atrace logging on userdebug builds[1]. Do you have such a build available?
Alternatively we could record a Perfetto trace:
1. Enable command line overriding by typing this to the address bar: chrome://flags/#enable-command-line-on-non-rooted-devices (set to Enabled)
2. Turn on system tracing with: adb shell 'echo "_ --enable-features=EnablePerfettoSystemTracing" > /data/local/tmp/chrome-command-line'
3. Start Chrome.
4. Run the following command to record a trace while reproducing the problem:
==== 8< ==== 8< ==== 8< ====
adb shell perfetto \
-c - --txt \
-o /data/misc/perfetto-traces/trace \
<<EOF
buffers: {
size_kb: 63488
fill_policy: DISCARD
}
buffers: {
size_kb: 2048
fill_policy: DISCARD
}
data_sources: {
config {
name: "android.log"
android_log_config {
}
}
}
data_sources: {
config {
name: "org.chromium.trace_event"
chrome_config {
trace_config: "{\"record_mode\":\"record-until-full\",\"included_categories\":[\"log\",\"toplevel\",\"sequence_manager\",\"disabled-by-default-toplevel.flow\",\"disabled-by-default-ipc.flow\",\"mojom\",\"v8\",\"blink\",\"cc\",\"gpu\",\"viz\",\"ui\",\"views\",\"benchmark\",\"evdev\",\"input\",\"loading\",\"net\",\"netlog\",\"navigation\",\"browser\"],\"memory_dump_config\":{}}"
}
}
}
data_sources: {
config {
name: "org.chromium.trace_metadata"
chrome_config {
trace_config: "{\"record_mode\":\"record-until-full\",\"included_categories\":[\"log\",\"toplevel\",\"sequence_manager\",\"disabled-by-default-toplevel.flow\",\"disabled-by-default-ipc.flow\",\"mojom\",\"v8\",\"blink\",\"cc\",\"gpu\",\"viz\",\"ui\",\"views\",\"benchmark\",\"evdev\",\"input\",\"loading\",\"net\",\"netlog\",\"navigation\",\"browser\"],\"memory_dump_config\":{}}"
}
}
}
data_sources: {
config {
name: "linux.ftrace"
ftrace_config {
ftrace_events: "ftrace/print"
atrace_categories: "gfx"
atrace_categories: "input"
atrace_categories: "view"
}
}
}
duration_ms: 10000
EOF
==== 8< ==== 8< ==== 8< ====
5. Pull the trace file and attach here:
adb pull /data/misc/perfetto-traces/trace
[1]
https://source.android.com/setup/build/building