brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.53k stars 2.27k forks source link

Implement support of custom PGO profiles #39609

Open atuchin-m opened 2 months ago

atuchin-m commented 2 months ago

Description

The plan: Stage 1. Make a custom win-x64 build to estimate profit, prepare minispec. Stage 2. Make npm run perf_test -- --generate_pgo_profiles to generate and upload the profiles. Support fetching the profiles for official buids. Devops task: https://github.com/brave/devops/issues/11983
Stage 3. Establish CI to update profiles for master once a week (win-x64) Stage 4. Extend this to beta and stable Stage 5. Suppose some other configs taking into account the maintenance costs (consider supporing android-arm64 and mac-m1)

Some points:

atuchin-m commented 3 weeks ago

Related tasks (add stories related to generating PGO profiles): https://github.com/brave/brave-browser/issues/40600

atuchin-m commented 3 weeks ago

Supporting the necessary benchmarks: https://github.com/brave/brave-browser/issues/40603

atuchin-m commented 1 week ago

Support the chromium components while generating PGO profiles: https://github.com/brave/brave-browser/issues/39609