Skip to content

Instantly share code, notes, and snippets.

@chris-piekarski
Last active January 31, 2022 10:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chris-piekarski/f9cfccf37a310c2eb634 to your computer and use it in GitHub Desktop.
Save chris-piekarski/f9cfccf37a310c2eb634 to your computer and use it in GitHub Desktop.
Android app startup profiler
From AOSP page:
"Analyzing app startup time
Use $ adb shell am start with the -P or --start-profiler option to run the profiler when your app starts.
This will start the profiler almost immediately after your process is forked from zygote, before any of your code is loaded into it."
@VihaanVerma89
Copy link

Once you have the trace file how to analyse it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment