ndk icon indicating copy to clipboard operation
ndk copied to clipboard

[DOC] Create doc for PGO + Native apps

Open pirama-arumuga-nainar opened this issue 3 years ago • 3 comments
trafficstars

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.

pirama-arumuga-nainar avatar Dec 15 '21 21:12 pirama-arumuga-nainar

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.

DanAlbert avatar Dec 17 '21 00:12 DanAlbert

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.

pirama-arumuga-nainar avatar Jan 19 '22 22:01 pirama-arumuga-nainar

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.

Over17 avatar Feb 02 '22 14:02 Over17