chromeos.dev icon indicating copy to clipboard operation
chromeos.dev copied to clipboard

Include perfetto tracing instructions

Open emilieroberts opened this issue 3 years ago • 0 comments

Probably the best way to be tracing on Chrome OS right now.

curl -O https://raw.githubusercontent.com/google/perfetto/master/tools/record_android_trace
chmod u+x record_android_trace
  • put device in dev mode
  • connect via adb
  • use script to grab the trace : "./record_android_trace -o trace_file.perfetto-trace -t 40s -b 128mb sched freq idle am wm gfx view binder_driver hal dalvik camera input res memory" -- t == max length -- b == max size -- determine other flags from perfetto ui or docs
  • Read trace file with ui.perfetto.dev

Include some screen shots, links to perfetto.dev.

emilieroberts avatar Feb 10 '22 12:02 emilieroberts