[Android PGO] How can I generate PGO file for Android locally?

142 views
Skip to first unread message

Atlas Zhang

unread,
Oct 26, 2023, 6:09:54 PM10/26/23
to Chromium-dev
I have read this Docs:

https://chromium.googlesource.com/chromium/src.git/+/master/docs/pgo.md

and I have generate PGO file in Linux following above document.



Now I want to generate PGO for Android locally(in some reasons I don`t want to use downloaded PGO), but I can not find any docs introduce how to do it.

Nico Weber

unread,
Oct 30, 2023, 10:13:48 AM10/30/23
to zhanga...@gmail.com, Chromium-dev, Samuel Huang
Hi,

as far as I know, we currently use Linux-generated PGO profiles for Android builds…whoa no, we actually switched to real profiles recently: https://bugs.chromium.org/p/chromium/issues/detail?id=1464107

Very cool! huangs, do we have docs on how to generate these somewhere?

Nico

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/65063e91-d9a8-4a6f-b38c-f6f1cb6ca839n%40chromium.org.

Andrew Grieve

unread,
Oct 31, 2023, 9:59:06 AM10/31/23
to tha...@chromium.org, Peter Wen, zhanga...@gmail.com, Chromium-dev, Samuel Huang
+Peter Wen has also been working on PGO. I think the steps to generate the profile are mostly the same, but still probably worth updating the instructions in that doc?

Peter Wen

unread,
Oct 31, 2023, 5:01:57 PM10/31/23
to Andrew Grieve, tha...@chromium.org, zhanga...@gmail.com, Chromium-dev, Samuel Huang
Great question Atlas! I am currently trying to figure out how to reliably generate PGO profiles for Android locally. Currently I can generate *.profraw files but I cannot successfully generate *.profdata files from those *.profraw files. This is possible since the CI bots do it, but it just needs to be figured out for local development. If you figure out a way to do so in the meantime, please let me know! :)

Thanks,
Peter

Peter Wen

unread,
Nov 2, 2023, 8:11:21 AM11/2/23
to Andrew Grieve, tha...@chromium.org, zhanga...@gmail.com, Chromium-dev, Samuel Huang
I've created https://crbug.com/1498612 to track my progress, so feel free to track that bug if you'd like.

Thanks,
Peter
Reply all
Reply to author
Forward
0 new messages