Open pirama-arumuga-nainar opened 2 years ago
This was a lot harder than I expected (admittedly some of that is because all of my app and gradle skills have atrophied). Here's what I ended up with: https://github.com/DanAlbert/pgo-demo. I'll send a PR to the samples repo to make that a real sample in January, and @pirama-arumuga-nainar has a CL out for docs.
There's a lot of room for improvement in the workflow IMO, but I think AGP is the place that would need to go to be useful.
https://developer.android.com/ndk/guides/pgo is live. I think the pending work is to have https://github.com/DanAlbert/pgo-demo merge to the official NDK samples so we can ensure these steps keep working.
This is amazing - thank you folks for bringing the doc together! Covers few of the caveats I had to solve on my own back then.
https://medium.com/androiddevelopers/pgo-for-native-android-applications-1a48a99e95d0 has the instructions but parts of it are unclear.
https://source.android.com/devices/tech/perf/pgo is incomplete w.r.t. native apps.
We should create a separate doc under https://developer.android.com/ndk/guides that we can target to apps and that we can keep refreshed.