Skip to content

Instantly share code, notes, and snippets.

@benbaxter
Created April 8, 2024 14:41
Show Gist options
  • Save benbaxter/653f80df659db251dcb5bd147e283a52 to your computer and use it in GitHub Desktop.
Save benbaxter/653f80df659db251dcb5bd147e283a52 to your computer and use it in GitHub Desktop.
adb shell cmd package compile -m speed-profile -f <package name>
adb shell am force-stop <package name>
# Download record_android_trace following the instructions here:
# https://perfetto.dev/docs/quickstart/android-tracing#recording-a-trace-through-the-cmdline
~/android-scripts/traces/record_android_trace -c /path/to/default_perfetto_config.textproto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment